Skip to content

Commit cc20f9f

Browse files
committed
fix typo
1 parent 4a5e3d0 commit cc20f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka-clients/zapkafka/kafka_syncer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type kafkaWriteSyncer struct {
1313

1414
func NewKafkaAsyncProducer(addrs []string) (sarama.AsyncProducer, error) {
1515
config := sarama.NewConfig()
16-
config.Consumer.Return.Errors = true
16+
config.Producer.Return.Errors = true
1717
return sarama.NewAsyncProducer(addrs, config)
1818
}
1919

0 commit comments

Comments
 (0)