mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 21:09:28 +00:00
Set maxIncomingStreamsTotal in the constructor
This commit is contained in:
parent
1c45174c0c
commit
5d395a438d
@ -318,10 +318,9 @@ proc new*(
|
||||
getConn: connProvider,
|
||||
inflightSema: newAsyncSemaphore(maxInflight),
|
||||
maxInflight: maxInflight,
|
||||
maxIncomingStreamsTotal: Opt.some(maxInflight),
|
||||
)
|
||||
|
||||
#self.maxIncomingStreams = self.maxInflight
|
||||
|
||||
proc sendWantList(
|
||||
id: PeerId,
|
||||
cids: seq[BlockAddress],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user