Merge branch 'mergify/bp/v0.35.x/pr-8790' into p2p-dialer-storage-change-35-backport

This commit is contained in:
tycho garen
2022-06-18 10:31:45 -04:00

View File

@@ -1562,6 +1562,10 @@ func (p *peerInfo) Score() PeerScore {
score -= int64(addr.DialFailures)
}
if score < math.MinInt16 {
score = math.MinInt16
}
return PeerScore(score)
}