mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
access channel map with at
This commit is contained in:
parent
383a220333
commit
1467360f75
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user