为kafka消息添加压缩设置

This commit is contained in:
hebo 2019-12-13 11:41:10 +08:00
parent c95ded78e9
commit e68e06ec81
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func checkParams() {
case "lz4":
compressType = sarama.CompressionLZ4
default:
panic(fmt.Sprintf("cannot support compress type: %s", compress))
panic(fmt.Sprintf("cannot support kafka compress type: %s", compress))
}
fmt.Printf("kafka message compress type: %s", compress)