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
Commits
cc9f276f
Commit
cc9f276f
authored
Oct 21, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notes
parent
c3df3973
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
routing/dht/handlers.go
routing/dht/handlers.go
+1
-1
routing/dht/query.go
routing/dht/query.go
+1
-0
No files found.
routing/dht/handlers.go
View file @
cc9f276f
...
...
@@ -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
)
...
...
routing/dht/query.go
View file @
cc9f276f
...
...
@@ -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