decay path build limiter per path builder every tick

pull/1658/head
Jeff Becker 3 years ago
parent 34e31ba04f
commit a86152e03c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -192,6 +192,9 @@ namespace llarp
void Builder::Tick(llarp_time_t) void Builder::Tick(llarp_time_t)
{ {
const auto now = llarp::time_now_ms(); const auto now = llarp::time_now_ms();
m_router->pathBuildLimiter().Decay(now);
ExpirePaths(now, m_router); ExpirePaths(now, m_router);
if (ShouldBuildMore(now)) if (ShouldBuildMore(now))
BuildOne(); BuildOne();

Loading…
Cancel
Save