Skip to content

Commit

Permalink
bug: fix kafka transport
Browse files Browse the repository at this point in the history
* set default partitioner to roundrobin
  • Loading branch information
lspgn committed Dec 3, 2023
1 parent a1750f5 commit af010d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (d *KafkaDriver) Init() error {
kafkaConfig.Producer.MaxMessageBytes = d.kafkaMaxMsgBytes
kafkaConfig.Producer.Flush.Bytes = d.kafkaFlushBytes
kafkaConfig.Producer.Flush.Frequency = d.kafkaFlushFrequency
kafkaConfig.Producer.Partitioner = sarama.NewRoundRobinPartitioner

if d.kafkaCompressionCodec != "" {
/*
Expand Down

0 comments on commit af010d8

Please sign in to comment.