remove public addr book funcs from pex

This commit is contained in:
Ethan Buchman
2017-03-04 22:55:42 -05:00
parent 65b1756978
commit 88b5c724f2
2 changed files with 1 additions and 10 deletions

View File

@ -153,6 +153,7 @@ func (a *AddrBook) OurAddresses() []*NetAddress {
return addrs
}
// NOTE: addr must not be nil
func (a *AddrBook) AddAddress(addr *NetAddress, src *NetAddress) {
a.mtx.Lock()
defer a.mtx.Unlock()