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
4899d934
Commit
4899d934
authored
Feb 23, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error -> debug
parent
29fe7f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
routing/dht/dht.go
routing/dht/dht.go
+1
-1
routing/dht/routing.go
routing/dht/routing.go
+1
-1
No files found.
routing/dht/dht.go
View file @
4899d934
...
...
@@ -322,7 +322,7 @@ func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) [
// == to self? thats bad
for
_
,
p
:=
range
closer
{
if
p
==
dht
.
self
{
log
.
Error
(
"Attempted to return self! this shouldnt happen..."
)
log
.
Info
(
"Attempted to return self! this shouldnt happen..."
)
return
nil
}
}
...
...
routing/dht/routing.go
View file @
4899d934
...
...
@@ -88,7 +88,7 @@ func (dht *IpfsDHT) GetValue(ctx context.Context, key u.Key) ([]byte, error) {
// get closest peers in the routing table
rtp
:=
dht
.
routingTable
.
ListPeers
()
log
.
Error
f
(
"peers in rt: %s"
,
len
(
rtp
),
rtp
)
log
.
Debug
f
(
"peers in rt: %s"
,
len
(
rtp
),
rtp
)
if
len
(
rtp
)
==
0
{
log
.
Warning
(
"No peers from routing table!"
)
return
nil
,
errors
.
Wrap
(
kb
.
ErrLookupFailure
)
...
...
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