This commit is contained in:
tycho garen
2022-06-16 15:43:57 -04:00
parent f940ec1b81
commit 29d592f9a1
-6
View File
@@ -593,8 +593,6 @@ func (m *PeerManager) DialFailed(ctx context.Context, address NodeAddress) error
addressInfo.LastDialFailure = time.Now().UTC()
addressInfo.DialFailures++
// TODO: maybe mark peers inactive if we can't dial them
//
// // If a dial fails more than MaxFailedDialAttempts we should
// // mark it inactive and not attempt to dial it again.
// var totalDialFailures uint32
@@ -1010,10 +1008,6 @@ RETRY:
}
}
rand.Shuffle(len(addresses), func(i, j int) {
addresses[i], addresses[j] = addresses[j], addresses[i]
})
return addresses
}