Skip to content

Commit 0652c5c

Browse files
authored
Merge pull request #798 from fkulakov/master
stats_cb support
2 parents c58e1af + 4d134f2 commit 0652c5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: pkg/rdkafka/RdKafkaContext.php

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ private function getConf(): Conf
186186
$this->conf->setRebalanceCb($this->config['rebalance_cb']);
187187
}
188188

189+
if (isset($this->config['stats_cb'])) {
190+
$this->conf->setStatsCb($this->config['stats_cb']);
191+
}
192+
189193
$this->conf->setDefaultTopicConf($topicConf);
190194
}
191195

0 commit comments

Comments
 (0)