Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
50c72a67
Commit
50c72a67
authored
Jan 26, 2015
by
Juan Batiz-Benet
Browse files
p2p/peer/addr: addrbook RLock fix
parent
8ae932da
Changes
1
Hide whitespace changes
Inline
Side-by-side
peer/peerstore.go
View file @
50c72a67
...
...
@@ -85,8 +85,8 @@ func (ab *addressbook) Peers() []ID {
}
func
(
ab
*
addressbook
)
Addresses
(
p
ID
)
[]
ma
.
Multiaddr
{
ab
.
R
Lock
()
defer
ab
.
R
Unlock
()
ab
.
Lock
()
defer
ab
.
Unlock
()
maddrs
,
found
:=
ab
.
addrs
[
p
]
if
!
found
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment