Testing the double subscription

This commit is contained in:
Alexey Rybalchenko
2019-07-23 09:25:04 +02:00
committed by Dennis Klein
parent 18dc536f3d
commit cf26dd6aa7
5 changed files with 16 additions and 13 deletions

View File

@@ -65,6 +65,7 @@ Topology::Topology(DDSTopology topo, DDSSession session)
std::vector<uint64_t> deviceList = fDDSTopo.GetDeviceList();
for (const auto& d : deviceList) {
LOG(info) << "fair::mq::Topology Adding device " << d;
fTopologyState.emplace(d, DeviceStatus{ false, DeviceState::Ok });
}
fDDSSession.SubscribeToCommands([this](const std::string& msg, const std::string& condition, uint64_t senderId) {