This commit is contained in:
tycho garen
2022-06-15 11:36:46 -04:00
parent 796688e7d7
commit 40fb981f98

View File

@@ -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()
}
})