Skip to content
Snippets Groups Projects
Unverified Commit 74aff245 authored by Gus Eggert's avatar Gus Eggert Committed by GitHub
Browse files

feat: persist limits to Swarm.ResourceMgr.Limits (#8901)


* feat: persist limit changes to config

This changes the "ipfs swarm limit" command so that when limit changes
are applied via the command line, they are persisted to the repo
config, so that they remain in effect when the daemon restarts.

Any existing limit.json can be dropped into the IPFS config easily
using something like:

cat ~/.ipfs/config | jq ".Swarm.ResourceMgr.Limits = $(cat limit.json)" | sponge ~/.ipfs/config

This also upgrades to Resource Manager v0.3.0, which exports the config
schema so that we don't have to maintain our own copy of it.

Co-authored-by: default avatarMarcin Rataj <lidel@lidel.org>
parent d4879a46
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment