Skip to content

Commit

Permalink
fix: duplicate produce in otel producer
Browse files Browse the repository at this point in the history
  • Loading branch information
esdonmez committed Oct 6, 2023
1 parent 4805d9e commit bc44651
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 bc44651

Please sign in to comment.