diff --git a/libp2p/stream_muxer/muxer_multistream.py b/libp2p/stream_muxer/muxer_multistream.py index 4d4ce468..c247e530 100644 --- a/libp2p/stream_muxer/muxer_multistream.py +++ b/libp2p/stream_muxer/muxer_multistream.py @@ -48,8 +48,7 @@ class MuxerMultistream: Select a transport that both us and the node on the other end of conn support and agree on :param conn: conn to choose a transport over - :param initiator: true if we are the initiator, false otherwise - :return: selected secure transport + :return: selected muxer transport """ protocol: TProtocol communicator = RawConnectionCommunicator(conn) diff --git a/libp2p/transport/upgrader.py b/libp2p/transport/upgrader.py index 31306bab..b0373ec7 100644 --- a/libp2p/transport/upgrader.py +++ b/libp2p/transport/upgrader.py @@ -37,7 +37,7 @@ class TransportUpgrader: self, raw_conn: IRawConnection, peer_id: ID, initiator: bool ) -> ISecureConn: """ - Upgrade conn to be a secured connection + Upgrade conn to a secured connection """ if initiator: return await self.security_multistream.secure_outbound(raw_conn, peer_id) @@ -51,7 +51,7 @@ class TransportUpgrader: peer_id: ID, ) -> IMuxedConn: """ - Upgrade secured connection to be a muxed connection + Upgrade secured connection to a muxed connection """ return await self.muxer_multistream.new_conn( conn, generic_protocol_handler, peer_id