Fix TagEventBus::get()

In some cases we could move our shared_ptr by mistake
This commit is contained in:
Dawid Drozd 2019-11-13 19:43:32 +01:00
parent 2bb9c3e679
commit f986c6c675

View File

@ -84,7 +84,7 @@ public:
return _allBus.processLimit(maxCountOfEvents);
}
std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
const std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
{
return _tagToBus.at(tag);
}