From 681991ae48fe43f9f9af88a3b54a1299b38c684c Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 19 May 2020 16:15:36 -0600 Subject: [PATCH] reduce buffer size in lpchannel (#184) --- libp2p/muxers/mplex/lpchannel.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libp2p/muxers/mplex/lpchannel.nim b/libp2p/muxers/mplex/lpchannel.nim index 1a0fb077b..99aaafadd 100644 --- a/libp2p/muxers/mplex/lpchannel.nim +++ b/libp2p/muxers/mplex/lpchannel.nim @@ -22,8 +22,6 @@ export lpstream logScope: topic = "MplexChannel" -const DefaultChannelSize* = 1 shl 20 - type LPChannel* = ref object of BufferStream id*: uint64 @@ -44,7 +42,7 @@ proc newChannel*(id: uint64, conn: Connection, initiator: bool, name: string = "", - size: int = DefaultChannelSize, + size: int = DefaultBufferSize, lazy: bool = false): LPChannel = new result result.id = id