mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-07 13:40:56 +00:00
Rename TransportUpgrader initiator flag
This commit is contained in:
@ -33,13 +33,13 @@ class TransportUpgrader:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def upgrade_security(
|
async def upgrade_security(
|
||||||
self, raw_conn: IRawConnection, peer_id: ID, initiator: bool
|
self, raw_conn: IRawConnection, peer_id: ID, is_initiator: bool
|
||||||
) -> ISecureConn:
|
) -> ISecureConn:
|
||||||
"""
|
"""
|
||||||
Upgrade conn to a secured connection
|
Upgrade conn to a secured connection
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
if initiator:
|
if is_initiator:
|
||||||
return await self.security_multistream.secure_outbound(
|
return await self.security_multistream.secure_outbound(
|
||||||
raw_conn, peer_id
|
raw_conn, peer_id
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user