PR feedback: set protocol_id to constants

This commit is contained in:
mhchia
2019-08-20 11:02:21 +08:00
parent d7d8440b2c
commit 8596f7390f
3 changed files with 10 additions and 5 deletions

View File

@ -8,12 +8,15 @@ from libp2p.network.typing import GenericProtocolHandlerFn
from libp2p.peer.id import ID
from libp2p.security.secure_conn_interface import ISecureConn
from libp2p.stream_muxer.abc import IMuxedConn, IMuxedStream
from libp2p.typing import TProtocol
from .constants import HeaderTags
from .exceptions import StreamNotFound
from .mplex_stream import MplexStream
from .utils import decode_uvarint_from_stream, encode_uvarint
MPLEX_PROTOCOL_ID = TProtocol("/mplex/6.7.0")
class Mplex(IMuxedConn):
"""