fix: Set kafka max message size in client

pull/24376/head
Marko Mikulicic 2021-07-14 14:46:49 +02:00
parent 52704af776
commit 8d23dd6d6d
No known key found for this signature in database
GPG Key ID: D02A41F91A687DB3
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ impl KafkaBufferProducer {
let mut cfg = ClientConfig::new();
cfg.set("bootstrap.servers", &conn);
cfg.set("message.timeout.ms", "5000");
cfg.set("message.max.bytes", "10000000");
let producer: FutureProducer = cfg.create()?;