Fix peer discovery delays. (#2982)
* Fix DiscoveryBehaviour::poll. The previous implementation regularly returned `NotReady` from `poll` despite the inner Kademlia behaviour having events ready, thus letting the `poll`ing be largely driven by the task wakeups from the Delay for the next random Kademlia query, inducing major delays in consuming the ready Kademlia events and thus slowing progress. The discovery test now passes quickly, as expected. * Ensure the Delay is polled right after reset. For task wakeup.
parent
7202403b
Please register or sign in to comment