func (ph *peerHeap) Pop() interface{} {
	old := *ph
	n := len(old.peerScores)
	item := old.peerScores[n-1]
	item.index = -1 // for safety
	ph.peerScores = old.peerScores[:n-1]
	return item
}
func (ph *peerHeap) Pop() interface{} {
	old := *ph
	n := len(old.peerScores)
	item := old.peerScores[n-1]
	item.index = -1 
	ph.peerScores = old.peerScores[:n-1]
	return item
}
func ( ph * peerHeap ) Pop ( ) interface { } { old := * ph n := len ( old . peerScores ) item := old . peerScores [ n - 1 ] item . index = - 1 // for safety ph . peerScores = old . peerScores [ : n - 1 ] return item }
// Pop implements heap Pop interface
Pop implements heap Pop interface