mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 14:40:53 +00:00
Avoid using message-based IO in the plaintext protocol
Can reuse the machinery in `secio` but need to generalize the "buffering" there
This commit is contained in:
@ -58,7 +58,8 @@ class SecureSession(BaseSession):
|
||||
remote_encryption_parameters: AuthenticatedEncryptionParameters,
|
||||
conn: MsgIOReadWriter,
|
||||
) -> None:
|
||||
super().__init__(local_peer, local_private_key, conn, remote_peer)
|
||||
super().__init__(local_peer, local_private_key, remote_peer)
|
||||
self.conn = conn
|
||||
|
||||
self.local_encryption_parameters = local_encryption_parameters
|
||||
self.remote_encryption_parameters = remote_encryption_parameters
|
||||
|
||||
Reference in New Issue
Block a user