Updated Kafka version

This commit is contained in:
tidwall 2020-07-03 11:57:15 -07:00
parent 712da8aefa
commit 68e2b6d736
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ func (conn *KafkaConn) Send(msg string) error {
cfg.Net.WriteTimeout = time.Second * 5 cfg.Net.WriteTimeout = time.Second * 5
// Fix #333 : fix backward incompatibility introduced by sarama library // Fix #333 : fix backward incompatibility introduced by sarama library
cfg.Producer.Return.Successes = true cfg.Producer.Return.Successes = true
cfg.Version = sarama.V0_10_0_0
c, err := sarama.NewSyncProducer([]string{uri}, cfg) c, err := sarama.NewSyncProducer([]string{uri}, cfg)
if err != nil { if err != nil {