mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-12 11:46:59 +00:00
fix lint
This commit is contained in:
@@ -435,6 +435,8 @@ func (m *PeerManager) getConnectedInfo() connectedInfo {
|
||||
out.incoming++
|
||||
case peerConnectionOutgoing:
|
||||
out.outgoing++
|
||||
case peerConnectionInvalid:
|
||||
continue
|
||||
}
|
||||
}
|
||||
return out
|
||||
|
||||
@@ -444,8 +444,8 @@ func (r *Router) filterPeersID(ctx context.Context, id types.NodeID) error {
|
||||
func (r *Router) dialSleep(ctx context.Context) {
|
||||
if r.options.DialSleep == nil {
|
||||
const (
|
||||
maxDialerInterval = 500 // ms
|
||||
minDialerInterval = 100 // ms
|
||||
maxDialerInterval = 500 // ms
|
||||
minDialerInterval = 100 // ms
|
||||
)
|
||||
|
||||
// nolint:gosec // G404: Use of weak random number generator
|
||||
|
||||
Reference in New Issue
Block a user