add default channel size
This commit is contained in:
parent
d3182c4dba
commit
b9d03cf91b
|
@ -43,6 +43,10 @@ logScope:
|
||||||
# more formal approach.
|
# more formal approach.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
const
|
||||||
|
# DefaultChannelSize* = 1024 * 1024 # 1MB
|
||||||
|
DefaultChannelSize* = 1024 # TODO: for debugging only
|
||||||
|
|
||||||
type
|
type
|
||||||
LPChannel* = ref object of BufferStream
|
LPChannel* = ref object of BufferStream
|
||||||
id*: uint64 # channel id
|
id*: uint64 # channel id
|
||||||
|
@ -238,7 +242,7 @@ proc init*(
|
||||||
conn: Connection,
|
conn: Connection,
|
||||||
initiator: bool,
|
initiator: bool,
|
||||||
name: string = "",
|
name: string = "",
|
||||||
size: int = DefaultBufferSize,
|
size: int = DefaultChannelSize,
|
||||||
lazy: bool = false,
|
lazy: bool = false,
|
||||||
timeout: Duration = DefaultChanTimeout): LPChannel =
|
timeout: Duration = DefaultChanTimeout): LPChannel =
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue