Update llarp/router/outbound_message_handler.cpp

add comment

Co-authored-by: Thomas Winget <tewinget@gmail.com>
This commit is contained in:
majestrate 2022-05-02 16:12:27 -04:00 committed by Jeff
parent 238c33f565
commit 5b0ece3f9e
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ namespace llarp
m_Killer.TryAccess([this]() {
recentlyRemovedPaths.Decay();
ProcessOutboundQueue();
if (SendRoundRobin())
// TODO: this probably shouldn't be pumping, as it defeats the purpose
// of having a limit on sends per tick, but chaning it is potentially bad
// and requires testing so it should be changed later.
if (/*bool more = */ SendRoundRobin())
_router->TriggerPump();
});
}