Skip to content

Commit 077cd3b

Browse files
authored
Fix send duplicate message in trace interceptor (#709)
1 parent 46701f1 commit 077cd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

producer/interceptor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func newTraceInterceptor(traceCfg *primitive.TraceConfig) primitive.Interceptor
5050

5151
producerCtx := primitive.GetProducerCtx(ctx)
5252
if producerCtx.Message.Topic == dispatcher.GetTraceTopicName() {
53-
return next(ctx, req, reply)
53+
return err
5454
}
5555

5656
// SendOneway && SendAsync has no reply.

0 commit comments

Comments
 (0)