Querying local reps wasn't throttled properly (#4860)

This commit is contained in:
Piotr Wójcik 2025-03-16 11:40:33 +01:00 committed by GitHub
commit 8eefd013d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,13 +209,7 @@ void nano::rep_crawler::run ()
lock.unlock ();
query (targets);
lock.lock ();
}
// Query local representative
{
lock.unlock ();
query (node.loopback_channel);
query (node.loopback_channel); // Query local representative
lock.lock ();
}