Changed Run.cpp to defer qbus dispatch past service initialization.
This commit is contained in:
1 parent
66307edf91
commit
3d70d35b99
1 file changed
+2
-3
@@ -48,7 +48,7 @@ int Run::execute(std::vector<std::string> const &) {
|
||||
config::QuickbusNodeCfg qb_cfg;
|
||||
auto &ports = config::get<config::Ports>();
|
||||
qb_cfg.set_my_port(ports.qbus_port());
|
||||
qbus::Quickbus quickbus(qb_cfg);
|
||||
qbus::Quickbus quickbus(qb_cfg, qbus::Quickbus::ThreadOptions::deferred_start);
|
||||
api::ServiceContext sc(&quickbus);
|
||||
|
||||
trace::PerfLog perf_log;
|
||||
@@ -103,8 +103,7 @@ int Run::execute(std::vector<std::string> const &) {
|
||||
timer2.start();
|
||||
stats.publish(bg_health);
|
||||
|
||||
std::this_thread::sleep_until(
|
||||
std::chrono::time_point<std::chrono::system_clock>::max());
|
||||
quickbus.run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user