mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
blockstore.AllKeyChan: fix/cleanup error handling
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
parent
24aa42d85d
commit
aaaab9508c
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user