addrbook.go
func (a *AddrBook) RemoveAddress(addr *NetAddress) {
	a.mtx.Lock()
	defer a.mtx.Unlock()
	ka := a.addrLookup[addr.String()]
	if ka == nil {
		return
	}
	log.Info("Remove address from book", "addr", addr)
	a.removeFromAllBuckets(ka)
}
func (a *AddrBook) RemoveAddress(addr *NetAddress) {
	a.mtx.Lock()
	defer a.mtx.Unlock()
	ka := a.addrLookup[addr.String()]
	if ka == nil {
		return
	}
	log.Info("Remove address from book", "addr", addr)
	a.removeFromAllBuckets(ka)
}
func ( a * AddrBook ) RemoveAddress ( addr * NetAddress ) { a . mtx . Lock ( ) defer a . mtx . Unlock ( ) ka := a . addrLookup [ addr . String ( ) ] if ka == nil { return } log . Info ( " " , " " , addr ) a . removeFromAllBuckets ( ka ) }
// RemoveAddress removes the address from the book.
RemoveAddress removes the address from the book .