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-bitswap
Commits
8894bb6a
Commit
8894bb6a
authored
Apr 17, 2020
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ipfs_impl error handling
parent
a8ed6515
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
network/ipfs_impl.go
network/ipfs_impl.go
+2
-2
No files found.
network/ipfs_impl.go
View file @
8894bb6a
...
...
@@ -164,7 +164,7 @@ func (s *streamMessageSender) multiAttempt(ctx context.Context, fn func(context.
// If the sender has been closed or the context cancelled, just bail out
select
{
case
<-
ctx
.
Done
()
:
return
nil
return
ctx
.
Err
()
default
:
}
...
...
@@ -185,7 +185,7 @@ func (s *streamMessageSender) multiAttempt(ctx context.Context, fn func(context.
select
{
case
<-
ctx
.
Done
()
:
return
nil
return
ctx
.
Err
()
case
<-
time
.
After
(
s
.
opts
.
SendErrorBackoff
)
:
// wait a short time in case disconnect notifications are still propagating
log
.
Infof
(
"send message to %s failed but context was not Done: %s"
,
s
.
to
,
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