From d8d4cb0aa7815f8d30a252ea490a2879cd8c0f9f Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Tue, 12 Jan 2021 19:15:20 -0500 Subject: [PATCH] Lower the Swarm.ConnMgr.HighWater and LowWater limits --- components/services/ipfs/ipfs_service_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/services/ipfs/ipfs_service_impl.cc b/components/services/ipfs/ipfs_service_impl.cc index 13b2aeeb524c..baa1720996cd 100644 --- a/components/services/ipfs/ipfs_service_impl.cc +++ b/components/services/ipfs/ipfs_service_impl.cc @@ -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)) {