Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information