From fbf640794b36157ba6a3f6cb11a9a691d0fdd858 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sat, 9 May 2020 08:48:26 +0200 Subject: [PATCH] move channel size constant --- libp2p/muxers/mplex/coder.nim | 2 -- libp2p/muxers/mplex/lpchannel.nim | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/muxers/mplex/coder.nim b/libp2p/muxers/mplex/coder.nim index cc0f8c0ba..d7a6040fc 100644 --- a/libp2p/muxers/mplex/coder.nim +++ b/libp2p/muxers/mplex/coder.nim @@ -18,8 +18,6 @@ import types, logScope: topic = "MplexCoder" -const DefaultChannelSize* = 1 shl 20 - type Msg* = tuple id: uint64 diff --git a/libp2p/muxers/mplex/lpchannel.nim b/libp2p/muxers/mplex/lpchannel.nim index 8aeff1f6d..e22ed4b9f 100644 --- a/libp2p/muxers/mplex/lpchannel.nim +++ b/libp2p/muxers/mplex/lpchannel.nim @@ -22,6 +22,8 @@ export lpstream logScope: topic = "MplexChannel" +const DefaultChannelSize* = 1 shl 20 + type LPChannel* = ref object of BufferStream id*: uint64