Skip md recording thread loop if no recorders configured to run
This commit is contained in:
1 parent
1443007f93
commit
2bb3a2b6b5
1 file changed
+3
@@ -321,6 +321,9 @@ void MDRecorder::_start_recording_thread(bts::md::MDClient &md_client) {
|
||||
auto conf = config::get<bts::api::md::MarketDataConfig>();
|
||||
auto effective_conf =
|
||||
bts::md::MarketDataConfigUtils::get_effective_recording_config(conf);
|
||||
if (effective_conf.empty()) {
|
||||
return;
|
||||
}
|
||||
LOG(md, Info, "MDRecorder::_start_recording_thread conf: {}",
|
||||
utils::pb::to_string(conf));
|
||||
std::vector<std::unique_ptr<MDRecorder>> recorders = {};
|
||||
|
||||
Reference in new issue
Block a user