mirror of https://github.com/tidwall/tile38.git
fix #333 : regression bug introduced by sarama library
This commit is contained in:
parent
d09508edd3
commit
7ffb7686c2
|
@ -60,6 +60,9 @@ func (conn *KafkaConn) Send(msg string) error {
|
|||
cfg.Net.DialTimeout = time.Second
|
||||
cfg.Net.ReadTimeout = time.Second * 5
|
||||
cfg.Net.WriteTimeout = time.Second * 5
|
||||
// Fix #333 : fix backward incompatibility introduced by sarama library
|
||||
cfg.Producer.Return.Successes = true
|
||||
|
||||
c, err := sarama.NewSyncProducer([]string{uri}, cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue