Skip to content

Commit

Permalink
Add batch timeout to segmentio produce config
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmtszr committed Jan 9, 2023
1 parent 1dc1246 commit d83dd5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kafka/producer/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func NewProducer(config *config.Kafka, logger logger.Logger, errorLogger logger.
Balancer: &kafka.Hash{},
BatchSize: config.ProducerBatchSize,
BatchBytes: math.MaxInt,
BatchTimeout: 500 * time.Microsecond,
MaxAttempts: math.MaxInt,
ReadTimeout: config.ReadTimeout,
WriteTimeout: config.WriteTimeout,
Expand Down

0 comments on commit d83dd5e

Please sign in to comment.