client/authority-discovery: Throttle DHT requests (#7018)
* client/authority-discovery: Throttle DHT requests Instead of passing one DHT query for each authority down to the network every query interval, only pass MAX_IN_FLIGHT_LOOKUPS at a given point in time, triggering new ones when previous ones return. * client/authority-discovery/worker/test: Fix wrong constant
Showing
- substrate/client/authority-discovery/src/error.rs 2 additions, 4 deletionssubstrate/client/authority-discovery/src/error.rs
- substrate/client/authority-discovery/src/worker.rs 93 additions, 52 deletionssubstrate/client/authority-discovery/src/worker.rs
- substrate/client/authority-discovery/src/worker/tests.rs 159 additions, 107 deletionssubstrate/client/authority-discovery/src/worker/tests.rs
Please register or sign in to comment