Skip to content

Commit 49f0448

Browse files
author
tiger lee
authored
Merge pull request apache#1104 from 474903784/fix_send_async
[ISSUE apache#1102] fix send async err occur panic: runtime error: invalid …
2 parents 3493a47 + a22cfcb commit 49f0448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

producer/producer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ func (p *defaultProducer) sendAsync(ctx context.Context, msg *primitive.Message,
405405
cancel()
406406
if err != nil {
407407
h(ctx, nil, err)
408+
return
408409
}
409410

410411
resp := primitive.NewSendResult()

0 commit comments

Comments
 (0)