You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/23 10:49:13 UTC

[GitHub] [rocketmq-client-go] WJL3333 commented on a diff in pull request #863: [feat] /safely producer ctx

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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org