From 7d3b33d9cbaafc7db56c23aa35a0c4d9d8873fda Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 4 Jun 2017 11:27:55 -0700 Subject: [PATCH] Cleanup metadata example --- examples/metadata.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/examples/metadata.cpp b/examples/metadata.cpp index 06c0a7f..1089156 100644 --- a/examples/metadata.cpp +++ b/examples/metadata.cpp @@ -1,6 +1,5 @@ #include #include -#include #include #include "cppkafka/producer.h" #include "cppkafka/configuration.h" @@ -22,11 +21,8 @@ using cppkafka::BrokerMetadata; namespace po = boost::program_options; -bool running = true; - int main(int argc, char* argv[]) { string brokers; - string group_id; po::options_description options("Options"); options.add_options() @@ -48,14 +44,9 @@ int main(int argc, char* argv[]) { return 1; } - // Stop processing on SIGINT - signal(SIGINT, [](int) { running = false; }); - // Construct the configuration Configuration config = { { "metadata.broker.list", brokers }, - // Disable auto commit - { "enable.auto.commit", false } }; try {