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
p2p
go-p2p-kad-dht
Commits
b3f12cf9
Commit
b3f12cf9
authored
Jun 17, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demote errors to warnings
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
c29e3e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dht.go
dht.go
+4
-4
No files found.
dht.go
View file @
b3f12cf9
...
...
@@ -109,7 +109,7 @@ func (dht *IpfsDHT) putValueToPeer(ctx context.Context, p peer.ID,
rpmes
,
err
:=
dht
.
sendRequest
(
ctx
,
p
,
pmes
)
switch
err
{
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
default
:
return
err
...
...
@@ -179,7 +179,7 @@ func (dht *IpfsDHT) getValueSingle(ctx context.Context, p peer.ID,
case
nil
:
return
resp
,
nil
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
default
:
return
nil
,
err
...
...
@@ -262,7 +262,7 @@ func (dht *IpfsDHT) findPeerSingle(ctx context.Context, p peer.ID, id peer.ID) (
case
nil
:
return
resp
,
nil
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
id
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
id
)
fallthrough
default
:
return
nil
,
err
...
...
@@ -278,7 +278,7 @@ func (dht *IpfsDHT) findProvidersSingle(ctx context.Context, p peer.ID, key key.
case
nil
:
return
resp
,
nil
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
default
:
return
nil
,
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