func (l *PeerList) IntrospectList(opts *IntrospectionOptions) []SubPeerScore {
	var peers []SubPeerScore
	l.RLock()
	for _, ps := range l.peerHeap.peerScores {
		peers = append(peers, SubPeerScore{
			HostPort: ps.Peer.hostPort,
			Score:    ps.score,
		})
	}
	l.RUnlock()

	return peers
}
func (l *PeerList) IntrospectList(opts *IntrospectionOptions) []SubPeerScore {
	var peers []SubPeerScore
	l.RLock()
	for _, ps := range l.peerHeap.peerScores {
		peers = append(peers, SubPeerScore{
			HostPort: ps.Peer.hostPort,
			Score:    ps.score,
		})
	}
	l.RUnlock()

	return peers
}
func ( l * PeerList ) IntrospectList ( opts * IntrospectionOptions ) [ ] SubPeerScore { var peers [ ] SubPeerScore l . RLock ( ) for _ , ps := range l . peerHeap . peerScores { peers = append ( peers , SubPeerScore { HostPort : ps . Peer . hostPort , Score : ps . score , } ) } l . RUnlock ( ) return peers }
// IntrospectList returns the list of peers (hostport, score) in this peer list.
IntrospectList returns the list of peers ( hostport score ) in this peer list .