From 97cd3d1ba9f57c97ac159aa33a2369a7d3d8afc2 Mon Sep 17 00:00:00 2001 From: raj kumar <79806602+raj921@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:50:41 +0530 Subject: [PATCH] fix(cli): update default min-peers value to 5 to match documentation (#4257) The --min-peers flag was documented to have a default value of 5, but the code had it set to 0. This commit changes the default value in the code to 5, aligning with the documentation and improving user experience. --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 1b15edef1c..4c50fe3d67 100644 --- a/config/config.go +++ b/config/config.go @@ -43,7 +43,7 @@ const ( // DefaultDiscoveryInterval is the default discovery interval DefaultDiscoveryInterval = 10 * time.Second // DefaultMinPeers is the default minimum number of peers - DefaultMinPeers = 0 + DefaultMinPeers = 5 // DefaultMaxPeers is the default maximum number of peers DefaultMaxPeers = 50