Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(swarm): remove
handler
field from ConnectionClosed
event
Instead of transferring the `ConnectionHandler` back in a event to the `NetworkBehaviour`, we introduce `ConnectionHandler::poll_close`. This function will be polled like a `Stream` and can emit events that will be delivered to the `NetworkBehaviour`. Resolves: libp2p#3046. Pull-Request: libp2p#4076.
- Loading branch information