Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-routing
Commits
0761ec6c
Commit
0761ec6c
authored
Aug 30, 2014
by
Juan Batiz-Benet
Committed by
Brian Tiger Chow
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network.Find -> network.GetPeer
parent
9741fa1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dht/dht.go
dht/dht.go
+1
-1
No files found.
dht/dht.go
View file @
0761ec6c
...
...
@@ -622,7 +622,7 @@ func (dht *IpfsDHT) addPeerList(key u.Key, peers []*PBDHTMessage_PBPeer) []*peer
continue
}
// Dont add someone who is already on the list
p
:=
dht
.
network
.
Find
(
u
.
Key
(
prov
.
GetId
()))
p
:=
dht
.
network
.
GetPeer
(
u
.
Key
(
prov
.
GetId
()))
if
p
==
nil
{
u
.
DOut
(
"given provider %s was not in our network already.
\n
"
,
peer
.
ID
(
prov
.
GetId
())
.
Pretty
())
var
err
error
...
...
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