Skip to content

Commit

Permalink
increase refresh peer info interval
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone committed May 16, 2024
1 parent d67a164 commit 1128d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/p2p/dht/protocol/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func InitProtocol(env *protocol.P2PEnv) {
go p.detectNodeAddr()
go p.checkBlocked()
go func() {
ticker := time.NewTicker(time.Second)
ticker := time.NewTicker(time.Second * 3)
defer ticker.Stop()
ticker2 := time.NewTicker(time.Minute * 5)
defer ticker2.Stop()
Expand Down

0 comments on commit 1128d90

Please sign in to comment.