func (alloc *Allocator) PeerGone(peerName mesh.PeerName) {
	alloc.debugf("PeerGone: peer %s", peerName)

	alloc.actionChan <- func() {
		ringPeers := alloc.ring.PeerNames()
		if _, ok := ringPeers[peerName]; !ok {
			delete(alloc.nicknames, peerName)
		}
	}
}
// PeerGone removes nicknames of peers which are no longer mentioned
// in the ring. Async.
//
// NB: the function is invoked by the gossip library routines and should be
//     registered manually.
PeerGone removes nicknames of peers which are no longer mentioned
in the ring. Async.

the function is invoked by the gossip library routines and should be
registered manually.
// PeerGone removes nicknames of peers which are no longer mentioned // in the ring . Async . // // NB : the function is invoked by the gossip library routines and should be // registered manually .
func (alloc *Allocator) PeerGone(peerName mesh.PeerName) {
	alloc.debugf("PeerGone: peer %s", peerName)
	alloc.actionChan <- func() {
		ringPeers := alloc.ring.PeerNames()
		if _, ok := ringPeers[peerName]; !ok {
			delete(alloc.nicknames, peerName)
		}
	}
}
func ( alloc * Allocator ) PeerGone ( peerName mesh . PeerName ) { alloc . debugf ( " " , peerName ) alloc . actionChan <- func ( ) { ringPeers := alloc . ring . PeerNames ( ) if _ , ok := ringPeers [ peerName ] ; ! ok { delete ( alloc . nicknames , peerName ) } } }
PeerGone removes nicknames of peers which are no longer mentioned
in the ring.
PeerGone removes nicknames of peers which are no longer mentioned in the ring .