From 953005f0e5d5d7d390d3f03e9dc06a0c8b401aa1 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 8 Dec 2022 16:20:24 +0100 Subject: [PATCH] fix: adjust DefaultConnMgrHighWater https://github.com/ipfs/kubo/pull/9467#issuecomment-1341678826 --- config/init.go | 2 +- docs/config.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/init.go b/config/init.go index 29e960e8bc8..8420aa063f7 100644 --- a/config/init.go +++ b/config/init.go @@ -96,7 +96,7 @@ func InitWithIdentity(identity Identity) (*Config, error) { // DefaultConnMgrHighWater is the default value for the connection managers // 'high water' mark -const DefaultConnMgrHighWater = 150 +const DefaultConnMgrHighWater = 120 // DefaultConnMgrLowWater is the default value for the connection managers 'low // water' mark diff --git a/docs/config.md b/docs/config.md index 2aba83291fa..cd35cc9b485 100644 --- a/docs/config.md +++ b/docs/config.md @@ -1788,7 +1788,7 @@ HighWater is the number of connections that, when exceeded, will trigger a connection GC operation. Note: protected/recently formed connections don't count towards this limit. -Default: `150` +Default: `120` Type: `optionalInteger`