Skip to content

Commit

Permalink
tools/kafka_repeater: Send messages to multiple partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Aug 7, 2019
1 parent fe7f774 commit 77f77d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/kafka_repeater/KafkaRepeater.hpp
Expand Up @@ -57,7 +57,9 @@ class KafkaRepeater {
, produceBrokers_(produceBrokers)
, produceTopic_(produceTopic)
, producer_(
produceBrokers_.c_str(), produceTopic_.c_str(), 0 /* patition */) {}
produceBrokers_.c_str(),
produceTopic_.c_str(),
RD_KAFKA_PARTITION_UA) {}

static inline void loadOption(
const libconfig::Setting &cfg,
Expand Down

0 comments on commit 77f77d1

Please sign in to comment.