This commit is contained in:
tycho garen
2022-06-15 11:43:11 -04:00
parent 40fb981f98
commit a95efeb41b
2 changed files with 4 additions and 2 deletions

View File

@@ -435,6 +435,8 @@ func (m *PeerManager) getConnectedInfo() connectedInfo {
out.incoming++
case peerConnectionOutgoing:
out.outgoing++
case peerConnectionInvalid:
continue
}
}
return out

View File

@@ -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