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
d9a8d81e
Commit
d9a8d81e
authored
Mar 07, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transport refactor update
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
cd5778a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
network/ipfs_impl.go
network/ipfs_impl.go
+6
-6
No files found.
network/ipfs_impl.go
View file @
d9a8d81e
...
...
@@ -54,7 +54,7 @@ type streamMessageSender struct {
}
func
(
s
*
streamMessageSender
)
Close
()
error
{
return
s
.
s
.
Close
()
return
inet
.
Full
Close
(
s
.
s
)
}
func
(
s
*
streamMessageSender
)
Reset
()
error
{
...
...
@@ -119,13 +119,13 @@ func (bsnet *impl) SendMessage(
return
err
}
err
=
msgToStream
(
ctx
,
s
,
outgoing
)
if
err
!=
nil
{
if
err
=
msgToStream
(
ctx
,
s
,
outgoing
);
err
!=
nil
{
s
.
Reset
()
}
else
{
s
.
Close
()
return
err
}
return
err
// Yes, return this error. We have no reason to believe that the block
// was actually *sent* unless we see the EOF.
return
inet
.
FullClose
(
s
)
}
func
(
bsnet
*
impl
)
SetDelegate
(
r
Receiver
)
{
...
...
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