From d7d8440b2c331015d2f63b5e103f51f3d1f93a4b Mon Sep 17 00:00:00 2001 From: mhchia Date: Mon, 19 Aug 2019 23:18:00 +0800 Subject: [PATCH] PR feedback: nitpicks --- libp2p/stream_muxer/muxer_multistream.py | 3 +-- libp2p/transport/upgrader.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libp2p/stream_muxer/muxer_multistream.py b/libp2p/stream_muxer/muxer_multistream.py index 4d4ce46..c247e53 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 31306ba..b0373ec 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