Skip to content

Commit

Permalink
store: don't log block store errors
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Mar 9, 2024
1 parent 232592f commit 4a823c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions renterd/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,7 @@ func (bs *BlockStore) Has(ctx context.Context, c cid.Cid) (bool, error) {
// Get returns a block by CID
func (bs *BlockStore) Get(ctx context.Context, c cid.Cid) (blocks.Block, error) {
block, err := bs.downloader.Get(ctx, c)
if err != nil {
if !strings.Contains(err.Error(), "block not found") {
bs.log.Error("failed to download block", zap.Stringer("cid", c), zap.Error(err))
}
return nil, format.ErrNotFound{Cid: c}
}
return block, nil
return block, err
}

// GetSize returns the CIDs mapped BlockSize
Expand Down

0 comments on commit 4a823c5

Please sign in to comment.