add default channel size

This commit is contained in:
Dmitriy Ryajov 2020-08-20 20:39:56 -06:00
parent d3182c4dba
commit b9d03cf91b
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,10 @@ logScope:
# more formal approach.
#
const
# DefaultChannelSize* = 1024 * 1024 # 1MB
DefaultChannelSize* = 1024 # TODO: for debugging only
type
LPChannel* = ref object of BufferStream
id*: uint64 # channel id
@ -238,7 +242,7 @@ proc init*(
conn: Connection,
initiator: bool,
name: string = "",
size: int = DefaultBufferSize,
size: int = DefaultChannelSize,
lazy: bool = false,
timeout: Duration = DefaultChanTimeout): LPChannel =