mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 07:18:12 +08:00
fix(libp2p): streams config validation in resource manager (#10435)
This commit is contained in:
parent
2fdb997bc5
commit
40cf630874
@ -491,7 +491,7 @@ resource manager System.ConnsInbound (%d) must be bigger than ConnMgr.HighWater
|
||||
See: https://github.com/ipfs/kubo/blob/master/docs/libp2p-resource-management.md#how-does-the-resource-manager-resourcemgr-relate-to-the-connection-manager-connmgr
|
||||
`, rcm.System.ConnsInbound, highWater)
|
||||
}
|
||||
if rcm.System.Streams > rcmgr.DefaultLimit || rcm.System.Streams == rcmgr.BlockAllLimit && int64(rcm.System.Streams) <= highWater {
|
||||
if (rcm.System.Streams > rcmgr.DefaultLimit || rcm.System.Streams == rcmgr.BlockAllLimit) && int64(rcm.System.Streams) <= highWater {
|
||||
// nolint
|
||||
return fmt.Errorf(`
|
||||
Unable to initialize libp2p due to conflicting resource manager limit configuration.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user