From a099b9c65d02a77f6a0462ca8a6a07c550985780 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Wed, 4 Sep 2019 10:15:30 -0700 Subject: [PATCH] Clean up temporary hold over from previous PR --- libp2p/io/msgio.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libp2p/io/msgio.py b/libp2p/io/msgio.py index 03004b0..f60b0ff 100644 --- a/libp2p/io/msgio.py +++ b/libp2p/io/msgio.py @@ -25,16 +25,6 @@ def encode_msg_with_length(msg_bytes: bytes) -> bytes: return len_prefix + msg_bytes -# NOTE: temporary for this PR -encode = encode_msg_with_length - - -# NOTE: temporary for this PR -async def read_next_message(reader: Reader) -> bytes: - length = await read_length(reader) - return await reader.read(length) - - class MsgIOWriter(WriteCloser): write_closer: WriteCloser