Skip to content

Commit

Permalink
Merge pull request #7577 from brave/ipfs-high-low-water
Browse files Browse the repository at this point in the history
Lower the ConnMgr.HighWater and LowWater limits
  • Loading branch information
bbondy authored Jan 13, 2021
2 parents 8d2ca09 + d8d4cb0 commit 9a59e5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/services/ipfs/ipfs_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ void IpfsServiceImpl::Launch(mojom::IpfsConfigPtr config,
"[\"/ip4/0.0.0.0/tcp/" + config->swarm_port + "\", \"/ip6/::/tcp/" +
config->swarm_port + "\"]"},
{"config", "Datastore.GCPeriod", "1h"},
{"config", "Datastore.StorageMax", "1GB"}};
{"config", "Datastore.StorageMax", "1GB"},
{"config", "--json", "Swarm.ConnMgr.LowWater", "50"},
{"config", "--json", "Swarm.ConnMgr.HighWater", "300"}};

for (auto args : config_args) {
if (!LaunchProcessAndExit(config->binary_path, args, options)) {
Expand Down

0 comments on commit 9a59e5f

Please sign in to comment.