Skip to content

Commit d54b150

Browse files
author
yxq
committed
update: refresh peer info every 10 second
1 parent 678ff0a commit d54b150

File tree

1 file changed

+1
-1
lines changed
  • system/p2p/dht/protocol/peer

1 file changed

+1
-1
lines changed

system/p2p/dht/protocol/peer/peer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func InitProtocol(env *protocol.P2PEnv) {
113113
}
114114
}()
115115
go func() {
116-
ticker1 := time.NewTicker(time.Second * 5)
116+
ticker1 := time.NewTicker(time.Second * 10)
117117
if p.ChainCfg.IsTestNet() {
118118
ticker1 = time.NewTicker(time.Second)
119119
}

0 commit comments

Comments
 (0)