mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
access channel map with at
This commit is contained in:
@@ -74,7 +74,7 @@ class GenericFileSink : public FairMQDevice, public T, public U
|
||||
int receivedMsg = 0;
|
||||
|
||||
// store the channel reference to avoid traversing the map on every loop iteration
|
||||
const FairMQChannel& inputChannel = fChannels["data-in"].at(0);
|
||||
const FairMQChannel& inputChannel = fChannels.at("data-in").at(0);
|
||||
|
||||
while (CheckCurrentState(RUNNING))
|
||||
{
|
||||
|
Reference in New Issue
Block a user