Commit 50c72a67 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

p2p/peer/addr: addrbook RLock fix

parent 8ae932da
...@@ -85,8 +85,8 @@ func (ab *addressbook) Peers() []ID { ...@@ -85,8 +85,8 @@ func (ab *addressbook) Peers() []ID {
} }
func (ab *addressbook) Addresses(p ID) []ma.Multiaddr { func (ab *addressbook) Addresses(p ID) []ma.Multiaddr {
ab.RLock() ab.Lock()
defer ab.RUnlock() defer ab.Unlock()
maddrs, found := ab.addrs[p] maddrs, found := ab.addrs[p]
if !found { if !found {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment