diff --git a/src/server/sparkd/cmds/Run.cpp b/src/server/sparkd/cmds/Run.cpp index 3c9b1ec1c..6b3b7bbef 100644 --- a/src/server/sparkd/cmds/Run.cpp +++ b/src/server/sparkd/cmds/Run.cpp @@ -48,7 +48,7 @@ int Run::execute(std::vector const &) { config::QuickbusNodeCfg qb_cfg; auto &ports = config::get(); 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 const &) { timer2.start(); stats.publish(bg_health); - std::this_thread::sleep_until( - std::chrono::time_point::max()); + quickbus.run(); return 0; }