Skip to content

Commit

Permalink
fix(cli): update default min-peers value to 5 to match documentation (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
raj921 authored Oct 16, 2024
1 parent b4f4950 commit 97cd3d1
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 97cd3d1

Please sign in to comment.