Skip to content

Commit

Permalink
refactor(share/discovery): decrease default Advertisement interval (#…
Browse files Browse the repository at this point in the history
…2758)

Resolves #2704
  • Loading branch information
walldiss authored Sep 25, 2023
1 parent 4289e09 commit 8602d6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions share/p2p/discovery/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ type Option func(*Parameters)
// for the Discovery module
func DefaultParameters() Parameters {
return Parameters{
PeersLimit: 5,
// based on https://github.com/libp2p/go-libp2p-kad-dht/pull/793
AdvertiseInterval: time.Hour * 22,
PeersLimit: 5,
AdvertiseInterval: time.Hour,
}
}

Expand Down

0 comments on commit 8602d6e

Please sign in to comment.