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
b30eb0e7
Commit
b30eb0e7
authored
Sep 18, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(bitswap) broadcast block to routing, peers on receipt
parent
ef92b55d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
bitswap.go
bitswap.go
+1
-0
No files found.
bitswap.go
View file @
b30eb0e7
...
...
@@ -118,6 +118,7 @@ func (bs *bitswap) ReceiveMessage(
for
_
,
block
:=
range
incoming
.
Blocks
()
{
go
bs
.
blockstore
.
Put
(
block
)
// FIXME(brian): err ignored
go
bs
.
notifications
.
Publish
(
block
)
go
bs
.
HasBlock
(
ctx
,
block
)
// FIXME err ignored
}
}
...
...
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