Skip to content

Commit 68a4cfe

Browse files
committed
Fix runtime type conversion
1 parent 4b1ce75 commit 68a4cfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/8-KafkaToHttpServer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ int main(int argc, char* argv[]) {
191191
boost::program_options::variables_map vm;
192192
boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), vm);
193193
boost::program_options::notify(vm);
194-
unsigned short port = vm["http-port"].as<unsigned int>();
194+
unsigned short port = vm["http-port"].as<unsigned short>();
195195

196196
MonLogger::mLoggerSeverity = o2::monitoring::Severity::Debug;
197-
197+
std::cout << "Using Kafka instance: " << vm["kafka-host"].as<std::string>() << ":9092 and HTTP server port: " << port << std::endl;
198198
std::thread webServerThread([&port](){
199199
auto const address = boost::asio::ip::make_address("0.0.0.0");
200200
boost::asio::io_context ioc{1};

0 commit comments

Comments
 (0)