We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 629bbbf commit b2f9e75Copy full SHA for b2f9e75
include/snctl-cpp/topics/describe_topic.h
@@ -54,7 +54,7 @@ inline void describe_topic(rd_kafka_t *rk, rd_kafka_queue_t *rkqu,
54
auto id = rd_kafka_TopicPartitionInfo_partition(result_partition);
55
auto leader = rd_kafka_TopicPartitionInfo_leader(result_partition);
56
if (leader) {
57
- std::cout << "Partition[" << i << "] "
+ std::cout << "Partition[" << id << "] "
58
<< R"(leader: {"id": )" << rd_kafka_Node_id(leader)
59
<< R"(, url: ")" << rd_kafka_Node_host(leader) << ':'
60
<< rd_kafka_Node_port(leader) << R"("})" << std::endl;
0 commit comments