From 27c0a4f77b4a15afbd7d846ce1b1b2a21b764f89 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 16 Aug 2019 13:04:55 -0700 Subject: [PATCH] formatting --- libp2p/security/base_session.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libp2p/security/base_session.py b/libp2p/security/base_session.py index 54562b1..4d1bddf 100644 --- a/libp2p/security/base_session.py +++ b/libp2p/security/base_session.py @@ -24,10 +24,12 @@ class BaseSession(ISecureConn): ) -> None: self.local_peer = transport.local_peer self.local_private_key = transport.local_private_key - self.conn = conn self.remote_peer_id = peer_id self.remote_permanent_pubkey = None + self.conn = conn + self.writer = self.conn.writer + self.reader = self.conn.reader self.initiator = self.conn.initiator async def write(self, data: bytes) -> None: