mirror of https://github.com/vacp2p/nim-libp2p.git
reduce buffer size in lpchannel (#184)
This commit is contained in:
parent
01339c991f
commit
681991ae48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue