From 376a5d4fc68ce1d4f969b15bad9b50fa1a6ad0ba Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 23 Aug 2019 23:49:59 +0200 Subject: [PATCH] Adjust callsite --- libp2p/security/insecure/transport.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libp2p/security/insecure/transport.py b/libp2p/security/insecure/transport.py index 2aad45c0..8ad2e614 100644 --- a/libp2p/security/insecure/transport.py +++ b/libp2p/security/insecure/transport.py @@ -76,7 +76,7 @@ class InsecureTransport(BaseSecureTransport): for an inbound connection (i.e. we are not the initiator) :return: secure connection object (that implements secure_conn_interface) """ - session = InsecureSession(self, conn, ID(b"")) + session = InsecureSession(self.local_peer, self.local_private_key, conn) await session.run_handshake() return session @@ -86,7 +86,9 @@ class InsecureTransport(BaseSecureTransport): for an inbound connection (i.e. we are the initiator) :return: secure connection object (that implements secure_conn_interface) """ - session = InsecureSession(self, conn, peer_id) + session = InsecureSession( + self.local_peer, self.local_private_key, conn, peer_id + ) await session.run_handshake() return session