mirror of https://github.com/tidwall/tile38.git
Updated Kafka version
This commit is contained in:
parent
712da8aefa
commit
68e2b6d736
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue