Skip to content

Commit 7a75279

Browse files
committed
fix fmt
1 parent 2e7cda4 commit 7a75279

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/modules/evaluation/domain/service/evaluator_source_prompt_impl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (p *EvaluatorSourcePromptServiceImpl) Run(ctx context.Context, evaluator *e
165165

166166
func (p *EvaluatorSourcePromptServiceImpl) chat(ctx context.Context, evaluatorVersion *entity.PromptEvaluatorVersion, userIDInContext string, disableTracing bool) (resp *entity.ReplyItem, err error) {
167167
var modelSpan *evaluatorSpan
168-
var modelCtx = ctx
168+
modelCtx := ctx
169169

170170
if !disableTracing {
171171
modelSpan, modelCtx = newEvaluatorSpan(ctx, evaluatorVersion.ModelConfig.ModelName, "model", strconv.FormatInt(evaluatorVersion.SpaceID, 10), true)
@@ -174,7 +174,7 @@ func (p *EvaluatorSourcePromptServiceImpl) chat(ctx context.Context, evaluatorVe
174174
}()
175175
}
176176

177-
var modelTraceCtx = modelCtx
177+
modelTraceCtx := modelCtx
178178
if !disableTracing {
179179
modelTraceCtx = looptracer.GetTracer().Inject(modelCtx)
180180
if err != nil {

0 commit comments

Comments
 (0)