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
|
Select a transport that both us and the node on the
|
||||||
other end of conn support and agree on
|
other end of conn support and agree on
|
||||||
:param conn: conn to choose a transport over
|
:param conn: conn to choose a transport over
|
||||||
:param initiator: true if we are the initiator, false otherwise
|
:return: selected muxer transport
|
||||||
:return: selected secure transport
|
|
||||||
"""
|
"""
|
||||||
protocol: TProtocol
|
protocol: TProtocol
|
||||||
communicator = RawConnectionCommunicator(conn)
|
communicator = RawConnectionCommunicator(conn)
|
||||||
|
|
|
@ -37,7 +37,7 @@ class TransportUpgrader:
|
||||||
self, raw_conn: IRawConnection, peer_id: ID, initiator: bool
|
self, raw_conn: IRawConnection, peer_id: ID, initiator: bool
|
||||||
) -> ISecureConn:
|
) -> ISecureConn:
|
||||||
"""
|
"""
|
||||||
Upgrade conn to be a secured connection
|
Upgrade conn to a secured connection
|
||||||
"""
|
"""
|
||||||
if initiator:
|
if initiator:
|
||||||
return await self.security_multistream.secure_outbound(raw_conn, peer_id)
|
return await self.security_multistream.secure_outbound(raw_conn, peer_id)
|
||||||
|
@ -51,7 +51,7 @@ class TransportUpgrader:
|
||||||
peer_id: ID,
|
peer_id: ID,
|
||||||
) -> IMuxedConn:
|
) -> IMuxedConn:
|
||||||
"""
|
"""
|
||||||
Upgrade secured connection to be a muxed connection
|
Upgrade secured connection to a muxed connection
|
||||||
"""
|
"""
|
||||||
return await self.muxer_multistream.new_conn(
|
return await self.muxer_multistream.new_conn(
|
||||||
conn, generic_protocol_handler, peer_id
|
conn, generic_protocol_handler, peer_id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user