Skip to content

Commit

Permalink
fix(cli): update default min-peers to 5 to match documentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raj921 authored and haikoschol committed Oct 16, 2024
1 parent b4f4950 commit 5b2d7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b2d7b0

Please sign in to comment.