Implement ipfs swarm limit [scope] --reset #8918
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
Milestone
Context
#8901 added
ipfs swarm limit
command for setting limits per scope and persisting them in config underSwarm.ResourceMgr.Limits
Problem
What we are missing, is a way for people to remove custom limits and reset them to the implicit defaults provided with go-ipfs/go-libp2p. Right now, our users need to manually edit
$IPFS_PATH/config
by hand and remove entries fromSwarm.ResourceMgr.Limits
, which is error-prone, and then reboot the node so the implicit default limits are restored.We can do better!
Proposed solution
Implement optional parameter
ipfs swarm limit [scope] --reset
that will:Swarm.ResourceMgr.Limits
has any custom limits, and remove themipfs swarm limit [scope]
without any parameter)The text was updated successfully, but these errors were encountered: