Skip to content

Commit

Permalink
Merge pull request #1 from JacksonJia/master
Browse files Browse the repository at this point in the history
Disable compression
  • Loading branch information
xyh authored Feb 7, 2018
2 parents 676bf87 + f8367c8 commit 13f38ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func InitKafka() (err error) {

configs := sarama.NewConfig()
configs.Producer.RequiredAcks = sarama.WaitForLocal // Only wait for the leader to ack
configs.Producer.Compression = sarama.CompressionSnappy // Compress messages
configs.Producer.Compression = sarama.CompressionNone // Compress messages
configs.Producer.Flush.Frequency = 500 * time.Millisecond // Flush batches every 500ms
configs.Producer.Retry.Max = 3
configs.Producer.Return.Errors = true
Expand Down

0 comments on commit 13f38ba

Please sign in to comment.