(cherry picked from commit 9f604fd2ef)
This commit is contained in:
tycho garen
2022-06-10 16:00:25 -04:00
parent dc148b81d8
commit a1ef61b63e
+2 -1
View File
@@ -1362,7 +1362,8 @@ func (p *peerInfo) Copy() peerInfo {
}
// LastDialed returns when the peer was last dialed, and if that dial
// attempt was successful.
// attempt was successful. If the peer was never dialed the time stamp
// is zero time.
func (p *peerInfo) LastDialed() (time.Time, bool) {
var (
last time.Time