From 40fb981f9804d02002bcf1006fa4facb7f431e3c Mon Sep 17 00:00:00 2001 From: tycho garen Date: Wed, 15 Jun 2022 11:36:46 -0400 Subject: [PATCH] comments --- internal/p2p/peermanager.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index 1283477e1..93ec5d9e4 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -41,7 +41,8 @@ const ( type peerConnectionDirection int const ( - peerConnectionIncoming peerConnectionDirection = iota + peerConnectionInvalid peerConnectionDirection = iota + peerConnectionIncoming peerConnectionOutgoing ) @@ -1336,8 +1337,6 @@ func (s *peerStore) Ranked() []*peerInfo { // most recent dialing attempt, fall back to // peer score. - // FIXME: If necessary, consider precomputing scores before sorting, - // to reduce the number of Score() calls. return s.ranked[i].Score() > s.ranked[j].Score() } })