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
39aad1cc
Commit
39aad1cc
authored
Oct 21, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes
parent
e400dd26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
dht/handlers.go
dht/handlers.go
+1
-1
dht/query.go
dht/query.go
+1
-0
No files found.
dht/handlers.go
View file @
39aad1cc
...
...
@@ -86,7 +86,7 @@ func (dht *IpfsDHT) handleGetValue(p peer.Peer, pmes *Message) (*Message, error)
for
_
,
p
:=
range
closer
{
log
.
Debug
(
"handleGetValue returning closer peer: '%s'"
,
p
)
if
len
(
p
.
Addresses
())
<
1
{
log
.
Error
(
"no addresses on peer being sent!"
)
log
.
Critical
(
"no addresses on peer being sent!"
)
}
}
resp
.
CloserPeers
=
peersToPBPeers
(
closer
)
...
...
dht/query.go
View file @
39aad1cc
...
...
@@ -232,6 +232,7 @@ func (r *dhtQueryRunner) queryPeer(p peer.Peer) {
}()
// make sure we're connected to the peer.
// (Incidentally, this will add it to the peerstore too)
err
:=
r
.
query
.
dialer
.
DialPeer
(
p
)
if
err
!=
nil
{
log
.
Debug
(
"ERROR worker for: %v -- err connecting: %v"
,
p
,
err
)
...
...
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