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
62c986d5
Commit
62c986d5
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
f81f6ca6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
routing/dht/dht.go
routing/dht/dht.go
+4
-4
No files found.
routing/dht/dht.go
View file @
62c986d5
...
@@ -109,7 +109,7 @@ func (dht *IpfsDHT) putValueToPeer(ctx context.Context, p peer.ID,
...
@@ -109,7 +109,7 @@ func (dht *IpfsDHT) putValueToPeer(ctx context.Context, p peer.ID,
rpmes
,
err
:=
dht
.
sendRequest
(
ctx
,
p
,
pmes
)
rpmes
,
err
:=
dht
.
sendRequest
(
ctx
,
p
,
pmes
)
switch
err
{
switch
err
{
case
ErrReadTimeout
:
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
fallthrough
default
:
default
:
return
err
return
err
...
@@ -179,7 +179,7 @@ func (dht *IpfsDHT) getValueSingle(ctx context.Context, p peer.ID,
...
@@ -179,7 +179,7 @@ func (dht *IpfsDHT) getValueSingle(ctx context.Context, p peer.ID,
case
nil
:
case
nil
:
return
resp
,
nil
return
resp
,
nil
case
ErrReadTimeout
:
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
fallthrough
default
:
default
:
return
nil
,
err
return
nil
,
err
...
@@ -262,7 +262,7 @@ func (dht *IpfsDHT) findPeerSingle(ctx context.Context, p peer.ID, id peer.ID) (
...
@@ -262,7 +262,7 @@ func (dht *IpfsDHT) findPeerSingle(ctx context.Context, p peer.ID, id peer.ID) (
case
nil
:
case
nil
:
return
resp
,
nil
return
resp
,
nil
case
ErrReadTimeout
:
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
id
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
id
)
fallthrough
fallthrough
default
:
default
:
return
nil
,
err
return
nil
,
err
...
@@ -278,7 +278,7 @@ func (dht *IpfsDHT) findProvidersSingle(ctx context.Context, p peer.ID, key key.
...
@@ -278,7 +278,7 @@ func (dht *IpfsDHT) findProvidersSingle(ctx context.Context, p peer.ID, key key.
case
nil
:
case
nil
:
return
resp
,
nil
return
resp
,
nil
case
ErrReadTimeout
:
case
ErrReadTimeout
:
log
.
Error
f
(
"read timeout: %s %s"
,
p
,
key
)
log
.
Warning
f
(
"read timeout: %s %s"
,
p
.
Pretty
()
,
key
)
fallthrough
fallthrough
default
:
default
:
return
nil
,
err
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