Max Inden 77a34c0a0d
protocols/kad/query/peers/closest: Make at_capacity use max (#1548)
When not making progress for `parallelism` time a `ClosestPeersIter`
becomes `State::Stalled`. When stalled an iterator is allowed to make
more parallel requests up to `num_results`. If `num_results` is smaller
than `parallelism` make sure to still allow up to `parallelism` requests
in-flight.

Co-Authored-By: Roman Borschel <romanb@users.noreply.github.com>
2020-04-16 15:33:09 +02:00
..
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00
2020-04-09 16:54:01 +02:00