fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
Jorropo committed
Jan 20, 2023 at 15:29 UTC
b84cd115662d968d6fc51a46eb4319d97cee9979
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
}