From 29d592f9a18150e8479983b1aa38d309cc6539b0 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Thu, 16 Jun 2022 15:43:57 -0400 Subject: [PATCH] cleanup --- internal/p2p/peermanager.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index 275ca0828..e5fafd67d 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -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 }