@cryptotaxi247 / kubo / commits / 5bbc5212e

fix: typo in ensureConnMgrMakeSenseVsResourcesMgr

Jorropo committed Jan 20, 2023 at 15:29 UTC 5bbc5212ee638b110bf0b2ab83ccb28beec46bc1
1 file changed +2 -2
core/node/libp2p/rcmgr.go
+2 -2
@@ -67,7 +67,7 @@ func ResourceManager(cfg config.SwarmConfig) interface{} {
67 limitConfig = l
68 }
69
70 - if err := ensureConnMgrMakeSenseVsRessourcesMgr(limitConfig, cfg.ConnMgr); err != nil {
70 + if err := ensureConnMgrMakeSenseVsResourceMgr(limitConfig, cfg.ConnMgr); err != nil {
71 return nil, opts, err
72 }
73
@@ -603,7 +603,7 @@ func NetResetLimit(mgr network.ResourceManager, repo repo.Repo, scope string) (r
603 return result, nil
604 }
605
606 -func ensureConnMgrMakeSenseVsRessourcesMgr(rcm rcmgr.LimitConfig, cmgr config.ConnMgr) error {
606 +func ensureConnMgrMakeSenseVsResourceMgr(rcm rcmgr.LimitConfig, cmgr config.ConnMgr) error {
607 if cmgr.Type.WithDefault(config.DefaultConnMgrType) == "none" {
608 return nil // none connmgr, no checks to do
609 }