Add some consumer tests

This commit is contained in:
Matias Fontanini
2016-05-29 20:23:56 -07:00
parent 5b957de7e4
commit fd2d616506
4 changed files with 186 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ Consumer::Consumer(Configuration config) {
char error_buffer[512];
// Set ourselves as the opaque pointer
rd_kafka_conf_set_opaque(config.get_handle(), this);
rd_kafka_conf_set_rebalance_cb(config.get_handle(), &Consumer::rebalance_proxy);
rd_kafka_t* ptr = rd_kafka_new(RD_KAFKA_CONSUMER,
rd_kafka_conf_dup(config.get_handle()),
error_buffer, sizeof(error_buffer));