From aaaab9508c64a4560664daa5d3ed985c8d85e0c2 Mon Sep 17 00:00:00 2001 From: Kevin Atkinson Date: Wed, 30 Nov 2016 18:21:24 -0500 Subject: [PATCH] blockstore.AllKeyChan: fix/cleanup error handling License: MIT Signed-off-by: Kevin Atkinson --- blocks/blockstore/blockstore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/blockstore/blockstore.go b/blocks/blockstore/blockstore.go index d5a77ab23..6313cfffe 100644 --- a/blocks/blockstore/blockstore.go +++ b/blocks/blockstore/blockstore.go @@ -194,8 +194,8 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error) return } if e.Error != nil { - log.Debug("blockstore.AllKeysChan got err:", e.Error) - continue + log.Errorf("blockstore.AllKeysChan got err:", e.Error) + return } // need to convert to key.Key using key.KeyFromDsKey.