reduce buffer size in lpchannel (#184)

This commit is contained in:
Dmitriy Ryajov 2020-05-19 16:15:36 -06:00 committed by GitHub
parent 01339c991f
commit 681991ae48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@ export lpstream
logScope: logScope:
topic = "MplexChannel" topic = "MplexChannel"
const DefaultChannelSize* = 1 shl 20
type type
LPChannel* = ref object of BufferStream LPChannel* = ref object of BufferStream
id*: uint64 id*: uint64
@ -44,7 +42,7 @@ proc newChannel*(id: uint64,
conn: Connection, conn: Connection,
initiator: bool, initiator: bool,
name: string = "", name: string = "",
size: int = DefaultChannelSize, size: int = DefaultBufferSize,
lazy: bool = false): LPChannel = lazy: bool = false): LPChannel =
new result new result
result.id = id result.id = id