Skip to content

Commit

Permalink
Merge pull request #52 from Trendyol/fix/duplicate-message-produce-issue
Browse files Browse the repository at this point in the history
fix: duplicate produce in otel producer
  • Loading branch information
esdonmez authored Oct 6, 2023
2 parents 4805d9e + bc44651 commit a319551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions otel_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (o *otelProducer) WriteMessages(ctx context.Context, messages ...segmentio.
if err := o.w.WriteMessage(ctx, messages[0]); err != nil {
return fmt.Errorf("error during producing %w", err)
}
return nil
}

if err := o.w.WriteMessages(ctx, messages); err != nil {
Expand Down

0 comments on commit a319551

Please sign in to comment.