From d79a9476a032e45606c2053f0b39d7183e67b03c Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 7 Apr 2020 16:07:54 -0600 Subject: [PATCH] move codec string to mplex.nim --- libp2p/muxers/mplex/mplex.nim | 1 + libp2p/muxers/mplex/types.nim | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/muxers/mplex/mplex.nim b/libp2p/muxers/mplex/mplex.nim index 6b4745827..384e6daa0 100644 --- a/libp2p/muxers/mplex/mplex.nim +++ b/libp2p/muxers/mplex/mplex.nim @@ -24,6 +24,7 @@ import ../muxer, logScope: topic = "Mplex" +const MplexCodec* = "/mplex/6.7.0" const DefaultRWTimeout = InfiniteDuration type diff --git a/libp2p/muxers/mplex/types.nim b/libp2p/muxers/mplex/types.nim index 559e20249..d66db1b43 100644 --- a/libp2p/muxers/mplex/types.nim +++ b/libp2p/muxers/mplex/types.nim @@ -11,7 +11,6 @@ import chronos const MaxMsgSize* = 1 shl 20 # 1mb const MaxChannels* = 1000 -const MplexCodec* = "/mplex/6.7.0" const MaxReadWriteTime* = 5.seconds type