aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/src/routing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/src/routing.cpp')
-rw-r--r--daemon/src/routing.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/src/routing.cpp b/daemon/src/routing.cpp
index 15ae555..ac15eff 100644
--- a/daemon/src/routing.cpp
+++ b/daemon/src/routing.cpp
@@ -17,9 +17,10 @@ Router::route(Route_Map const & config)
return;
}
+ // LTG: at least one of these map accesses can be avoided
for (auto const & target: config.at(*m.source_id).at(m.type()))
{
- target(m.bytes);
+ target.get().send(m.bytes);
}
}
}
@@ -29,7 +30,7 @@ Router::submit(Message const & message)
{
if (!m_queue.try_enqueue(message))
{
- std::cout << "Failed to enqueue message from " << message.source_id << "\n";
+ std::cerr << "Failed to enqueue message from " << *message.source_id << "\n";
}
}