Skip to content

Commit

Permalink
fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo authored Jan 20, 2023
1 parent 92c76cc commit b84cd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/libp2p/rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func ResourceManager(cfg config.SwarmConfig) interface{} {
limitConfig = l
}

if err := ensureConnMgrMakeSenseVsRessourcesMgr(limitConfig, cfg.ConnMgr); err != nil {
if err := ensureConnMgrMakeSenseVsResourceMgr(limitConfig, cfg.ConnMgr); err != nil {
return nil, opts, err
}

Expand Down Expand Up @@ -603,7 +603,7 @@ func NetResetLimit(mgr network.ResourceManager, repo repo.Repo, scope string) (r
return result, nil
}

func ensureConnMgrMakeSenseVsRessourcesMgr(rcm rcmgr.LimitConfig, cmgr config.ConnMgr) error {
func ensureConnMgrMakeSenseVsResourceMgr(rcm rcmgr.LimitConfig, cmgr config.ConnMgr) error {
if cmgr.Type.WithDefault(config.DefaultConnMgrType) == "none" {
return nil // none connmgr, no checks to do
}
Expand Down

0 comments on commit b84cd11

Please sign in to comment.