From 4a823c5bbc3386ed0785159c99211c533eb3aaac Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Sat, 9 Mar 2024 13:28:44 -0800 Subject: [PATCH] store: don't log block store errors --- renterd/store.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/renterd/store.go b/renterd/store.go index 8f1d96b..bdfcaa5 100644 --- a/renterd/store.go +++ b/renterd/store.go @@ -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