This commit is contained in:
tycho garen
2022-06-10 12:21:23 -04:00
parent 31bd396c88
commit eddb23b5af
+2 -1
View File
@@ -1268,7 +1268,6 @@ type peerInfo struct {
MutableScore int64 // updated by router
Inactive bool
DialFailures int64
}
// peerInfoFromProto converts a Protobuf PeerInfo message to a peerInfo,
@@ -1352,6 +1351,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)
}