mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 09:31:20 +00:00
swarm(-derive)/: Rename references of protocol handler to connection handler (#2640)
This commit is contained in:
@ -113,7 +113,10 @@ where
|
||||
/// Begins an orderly shutdown of the connection, returning the connection
|
||||
/// handler and a `Future` that resolves when connection shutdown is complete.
|
||||
pub fn close(self) -> (THandler, Close<StreamMuxerBox>) {
|
||||
(self.handler.into_protocols_handler(), self.muxing.close().0)
|
||||
(
|
||||
self.handler.into_connection_handler(),
|
||||
self.muxing.close().0,
|
||||
)
|
||||
}
|
||||
|
||||
/// Polls the handler and the substream, forwarding events from the former to the latter and
|
||||
|
Reference in New Issue
Block a user