fix: typo in ensureConnMgrMakeSenseVsResourcesMgr

This commit is contained in:
Jorropo 2023-01-20 15:29:54 +01:00 committed by galargh
parent 0ae3285a76
commit 5bbc5212ee

View File

@ -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
}
@ -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
}