swarm(-derive)/: Rename references of protocol handler to connection handler (#2640)

This commit is contained in:
Chad Nehemiah
2022-05-18 02:52:50 -05:00
committed by GitHub
parent d21cd5fed7
commit d97893d293
9 changed files with 86 additions and 73 deletions

View File

@ -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