Set maxIncomingStreamsTotal in the constructor

This commit is contained in:
Arnaud 2026-06-03 11:46:50 +04:00
parent 1c45174c0c
commit 5d395a438d
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -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],