Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 6, 2023
1 parent 70df5ec commit 0c1bddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/tmx/TmxUtils/src/kafka/kafka_producer_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ namespace tmx::utils

kafka_producer_worker::kafka_producer_worker(const std::string &brokers)
: _broker_str(brokers), _run(true)
{
init_producer();
{
}

bool kafka_producer_worker::init()
Expand Down
4 changes: 4 additions & 0 deletions src/v2i-hub/CARMAStreetsPlugin/src/CARMAStreetsPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ void CARMAStreetsPlugin::InitKafkaConsumerProducers()

//Producer
_kafka_producer_ptr = client.create_producer(kafkaConnectString);
if(!_kafka_producer_ptr->init_producer())
{
return;
}

//Consumers
auto uuid = boost::uuids::random_generator()();
Expand Down

0 comments on commit 0c1bddd

Please sign in to comment.