Commit e2f87ba0 authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

move mem-dag construction to its own function, and actually call WriteOutputTo

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent f819c6c5
...@@ -104,6 +104,9 @@ func (s *BlockService) GetBlock(ctx context.Context, k key.Key) (*blocks.Block, ...@@ -104,6 +104,9 @@ func (s *BlockService) GetBlock(ctx context.Context, k key.Key) (*blocks.Block,
log.Debug("Blockservice: Searching bitswap.") log.Debug("Blockservice: Searching bitswap.")
blk, err := s.Exchange.GetBlock(ctx, k) blk, err := s.Exchange.GetBlock(ctx, k)
if err != nil { if err != nil {
if err == blockstore.ErrNotFound {
return nil, ErrNotFound
}
return nil, err return nil, err
} }
return blk, nil return blk, nil
......
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