Skip to content

Commit

Permalink
blockstore.AllKeyChan: fix/cleanup error handling
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
  • Loading branch information
kevina committed Nov 30, 2016
1 parent 24aa42d commit aaaab95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/blockstore/blockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit aaaab95

Please sign in to comment.