Commit d493d2d9 authored by Jeromy's avatar Jeromy Committed by Jeromy

wire contexts into bitswap requests more deeply

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 7cf31832
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment