Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libp2p-swarm] Correct returned connections from notify_all. (#1513)
* [libp2p-swarm] Correct returned connections from notify_all. If at least one connection was not ready (i.e. pending), only those (pending) connections would be returned and considered on the next iteration, whereas those which were ready should also remain in the list of connections to notify on retry of `notify_all`. * Simplify. It seems unnecessary to use "poll all" -> "send all" semantics, i.e. attempting an "atomic" broadcast. Rather, events send via `notify_all` can be delivered as soon as possible, simplifying the code further.
- Loading branch information