blockstore.AllKeyChan: fix/cleanup error handling

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
Kevin Atkinson 2016-11-30 18:21:24 -05:00
parent 24aa42d85d
commit aaaab9508c

View File

@ -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.