mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 12:07:57 +00:00
Allow building a configuration from an option list
This commit is contained in:
@@ -55,8 +55,9 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
// Construct the configuration
|
||||
Configuration config;
|
||||
config.set("metadata.broker.list", brokers);
|
||||
Configuration config = {
|
||||
{ "metadata.broker.list", brokers }
|
||||
};
|
||||
|
||||
// Create the producer
|
||||
Producer producer(config);
|
||||
|
||||
Reference in New Issue
Block a user