Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gus Eggert <gus@gus.dev>
  • Loading branch information
ajnavarro and guseggert authored Oct 6, 2022
1 parent 92bcb8e commit 54839ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/commands/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Changes made via command line are persisted in the Swarm.ResourceMgr.Limits fiel
cmds.FileArg("limit.json", false, false, "limits to be set").EnableStdin(),
},
Options: []cmds.Option{
cmds.BoolOption(swarmResetLimitsOptionName, "reset all limits to default ones."),
cmds.BoolOption(swarmResetLimitsOptionName, "reset limit to default"),
},
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
node, err := cmdenv.GetNode(env)
Expand Down
2 changes: 1 addition & 1 deletion core/node/libp2p/rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func NetResetLimit(mgr network.ResourceManager, repo repo.Repo, scope string) (r

cfg, err := repo.Config()
if err != nil {
return result, fmt.Errorf("reading config to set limit: %w", err)
return result, fmt.Errorf("reading config to reset limit: %w", err)
}

defaults := adjustedDefaultLimits(cfg.Swarm)
Expand Down

0 comments on commit 54839ce

Please sign in to comment.