mirror of
https://github.com/tendermint/tendermint.git
synced 2026-03-27 12:05:02 +00:00
cleanup
This commit is contained in:
@@ -616,8 +616,6 @@ func (m *PeerManager) DialFailed(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
|
||||
@@ -1033,10 +1031,6 @@ RETRY:
|
||||
}
|
||||
}
|
||||
|
||||
rand.Shuffle(len(addresses), func(i, j int) {
|
||||
addresses[i], addresses[j] = addresses[j], addresses[i]
|
||||
})
|
||||
|
||||
return addresses
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user