@@ -459,27 +459,31 @@ func ensureConnMgrMakeSenseVsResourceMgr(concreteLimits rcmgr.ConcreteLimitConfi
459
459
return fmt .Errorf (`
460
460
Unable to initialize libp2p due to conflicting resource manager limit configuration.
461
461
resource manager System.Conns (%d) must be bigger than ConnMgr.HighWater (%d)
462
+ 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
462
463
` , rcm .System .Conns , highWater )
463
464
}
464
465
if rcm .System .ConnsInbound != rcmgr .Unlimited && int64 (rcm .System .ConnsInbound ) <= highWater {
465
466
// nolint
466
467
return fmt .Errorf (`
467
468
Unable to initialize libp2p due to conflicting resource manager limit configuration.
468
469
resource manager System.ConnsInbound (%d) must be bigger than ConnMgr.HighWater (%d)
470
+ 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
469
471
` , rcm .System .ConnsInbound , highWater )
470
472
}
471
473
if rcm .System .Streams != rcmgr .Unlimited && int64 (rcm .System .Streams ) <= highWater {
472
474
// nolint
473
475
return fmt .Errorf (`
474
476
Unable to initialize libp2p due to conflicting resource manager limit configuration.
475
477
resource manager System.Streams (%d) must be bigger than ConnMgr.HighWater (%d)
478
+ 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
476
479
` , rcm .System .Streams , highWater )
477
480
}
478
481
if rcm .System .StreamsInbound != rcmgr .Unlimited && int64 (rcm .System .StreamsInbound ) <= highWater {
479
482
// nolint
480
483
return fmt .Errorf (`
481
484
Unable to initialize libp2p due to conflicting resource manager limit configuration.
482
485
resource manager System.StreamsInbound (%d) must be bigger than ConnMgr.HighWater (%d)
486
+ 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
483
487
` , rcm .System .StreamsInbound , highWater )
484
488
}
485
489
return nil
0 commit comments