WJL3333 commented on code in PR #863:
URL: https://github.com/apache/rocketmq-client-go/pull/863#discussion_r928109194


##########
producer/interceptor.go:
##########
@@ -54,7 +54,7 @@ func newTraceInterceptor(traceCfg *primitive.TraceConfig) 
primitive.Interceptor
                beginT := time.Now()
                err := next(ctx, req, reply)
 
-               producerCtx := primitive.GetProducerCtx(ctx)
+               producerCtx, _ := primitive.GetProducerCtx(ctx)

Review Comment:
   what if producerCtx not exist, i see ignore exist return value here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to