mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 22:23:11 +00:00
p2p: dial even faster
This commit is contained in:
@@ -445,8 +445,8 @@ func (r *Router) dialSleep(ctx context.Context) {
|
||||
// limits peers for dialing more than once every 10ms,
|
||||
// so these numbers are safe.
|
||||
const (
|
||||
maxDialerInterval = 500 // ms
|
||||
minDialerInterval = 100 // ms
|
||||
maxDialerInterval = 30 // ms
|
||||
minDialerInterval = 10 // ms
|
||||
)
|
||||
|
||||
// nolint:gosec // G404: Use of weak random number generator
|
||||
|
||||
Reference in New Issue
Block a user