func (alloc *Allocator) pruneNicknames() {
	ringPeers := alloc.ring.PeerNames()
	for name := range alloc.nicknames {
		if _, ok := ringPeers[name]; !ok && !alloc.isKnownPeer(name) {
			delete(alloc.nicknames, name)
		}
	}
}
// Restrict the peers in "nicknames" to those in the ring plus peers known to the router
Restrict the peers in "nicknames" to those in the ring plus peers known to the router
// Restrict the peers in " nicknames " to those in the ring plus peers known to the router
func (alloc *Allocator) pruneNicknames() {
	ringPeers := alloc.ring.PeerNames()
	for name := range alloc.nicknames {
		if _, ok := ringPeers[name]; !ok && !alloc.isKnownPeer(name) {
			delete(alloc.nicknames, name)
		}
	}
}
func ( alloc * Allocator ) pruneNicknames ( ) { ringPeers := alloc . ring . PeerNames ( ) for name := range alloc . nicknames { if _ , ok := ringPeers [ name ] ; ! ok && ! alloc . isKnownPeer ( name ) { delete ( alloc . nicknames , name ) } } }
Restrict the peers in "nicknames" to those in the ring plus peers known to the router
Restrict the peers in " nicknames " to those in the ring plus peers known to the router