feat(iox): Enable snappy compression in the producer

pull/24376/head
Marko Mikulicic 2021-07-29 16:37:11 +02:00
parent 431774c8b7
commit 99b358d481
No known key found for this signature in database
GPG Key ID: D02A41F91A687DB3
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ impl KafkaBufferProducer {
cfg.set("message.max.bytes", "31457280");
cfg.set("queue.buffering.max.kbytes", "31457280");
cfg.set("request.required.acks", "all"); // equivalent to acks=-1
cfg.set("compression.type", "snappy");
let producer: FutureProducer = cfg.create()?;