PR feedback: nitpicks
This commit is contained in:
parent
4358a4bc89
commit
d7d8440b2c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user