improve: Abort md rec loop if nothing configured to record
This commit is contained in:
1 parent
cc0a3ea15f
commit
db604fbed0
1 file changed
+3
@@ -572,6 +572,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