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-blockservice
Commits
d493d2d9
Commit
d493d2d9
authored
Nov 20, 2015
by
Jeromy
Committed by
Jeromy
Apr 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wire contexts into bitswap requests more deeply
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
7cf31832
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
blockservice.go
blockservice.go
+4
-0
No files found.
blockservice.go
View file @
d493d2d9
...
@@ -122,6 +122,10 @@ func (s *BlockService) GetBlocks(ctx context.Context, ks []key.Key) <-chan *bloc
...
@@ -122,6 +122,10 @@ func (s *BlockService) GetBlocks(ctx context.Context, ks []key.Key) <-chan *bloc
}
}
}
}
if
len
(
misses
)
==
0
{
return
}
rblocks
,
err
:=
s
.
Exchange
.
GetBlocks
(
ctx
,
misses
)
rblocks
,
err
:=
s
.
Exchange
.
GetBlocks
(
ctx
,
misses
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Debugf
(
"Error with GetBlocks: %s"
,
err
)
log
.
Debugf
(
"Error with GetBlocks: %s"
,
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