Skip to content

Commit

Permalink
Fix send duplicate message in trace interceptor (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 authored Aug 12, 2021
1 parent 46701f1 commit 077cd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion producer/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func newTraceInterceptor(traceCfg *primitive.TraceConfig) primitive.Interceptor

producerCtx := primitive.GetProducerCtx(ctx)
if producerCtx.Message.Topic == dispatcher.GetTraceTopicName() {
return next(ctx, req, reply)
return err
}

// SendOneway && SendAsync has no reply.
Expand Down

0 comments on commit 077cd3b

Please sign in to comment.