mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-14 20:57:03 +00:00
comments
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user