diff --git a/blockstore.go b/blockstore.go index a7e8b5daa67cc152b15221ec69fda502b1387473..e815642da073896c53132aaccaf91463f98b5661 100644 --- a/blockstore.go +++ b/blockstore.go @@ -224,10 +224,7 @@ func (bs *blockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { log.Warningf("error parsing key from binary: %s", err) continue } - k, err := cid.Cast(bk) - if err != nil { - log.Warningf("failed to cast cid: %s", err) - } + k := cid.NewCidV1(cid.Raw, bk) select { case <-ctx.Done(): return