reduce buffer size in lpchannel (#184)
This commit is contained in:
parent
01339c991f
commit
681991ae48
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue