@cryptotaxi247 / kubo / commits / aaaab9508

blockstore.AllKeyChan: fix/cleanup error handling

License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>

Kevin Atkinson committed Nov 30, 2016 at 18:21 UTC aaaab9508c64a4560664daa5d3ed985c8d85e0c2
1 file changed +2 -2
blocks/blockstore/blockstore.go
+2 -2
@@ -194,8 +194,8 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)
194 return
195 }
196 if e.Error != nil {
197 - log.Debug("blockstore.AllKeysChan got err:", e.Error)
198 - continue
197 + log.Errorf("blockstore.AllKeysChan got err:", e.Error)
198 + return
199 }
200
201 // need to convert to key.Key using key.KeyFromDsKey.