Plaintext: use existing msgio reader

This commit is contained in:
mhchia
2020-02-17 23:43:00 +08:00
parent 3c2e835725
commit f0df2d189f
4 changed files with 8 additions and 38 deletions

View File

@ -5,7 +5,7 @@ from that repo: "a simple package to r/w length-delimited slices."
NOTE: currently missing the capability to indicate lengths by "varint" method.
"""
# TODO unify w/ https://github.com/libp2p/py-libp2p/blob/1aed52856f56a4b791696bbcbac31b5f9c2e88c9/libp2p/utils.py#L85-L99 # noqa: E501
from typing import Optional
from libp2p.io.abc import MsgReadWriteCloser, Reader, ReadWriteCloser