mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 03:17:43 +08:00
fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
This commit is contained in:
parent
0ae3285a76
commit
5bbc5212ee
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user