(cherry picked from commit eddb23b5af)
This commit is contained in:
tycho garen
2022-06-10 15:54:42 -04:00
parent 60484e7a24
commit 9f910e6a98
+2 -1
View File
@@ -1297,7 +1297,6 @@ type peerInfo struct {
MutableScore int64 // updated by router
Inactive bool
DialFailures int64
}
// peerInfoFromProto converts a Protobuf PeerInfo message to a peerInfo,
@@ -1381,6 +1380,8 @@ func (p *peerInfo) LastDialed() (time.Time, bool) {
success = false
}
}
// if we never modified last, then
if last.Add(1).IsZero() {
last = last.Add(1)
}