mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-20 11:44:49 +00:00
Add offset commit and delivery report callbacks
This commit is contained in:
@@ -20,6 +20,10 @@ TopicPartitionsListPtr convert(const vector<TopicPartition>& topic_partitions) {
|
||||
}
|
||||
|
||||
vector<TopicPartition> convert(const TopicPartitionsListPtr& topic_partitions) {
|
||||
return convert(topic_partitions.get());
|
||||
}
|
||||
|
||||
vector<TopicPartition> convert(rd_kafka_topic_partition_list_t* topic_partitions) {
|
||||
vector<TopicPartition> output;
|
||||
for (int i = 0; i < topic_partitions->cnt; ++i) {
|
||||
const auto& elem = topic_partitions->elems[i];
|
||||
|
||||
Reference in New Issue
Block a user