plumb contexts in conformance
This commit is contained in:
parent
73c7e9edf1
commit
b31480232b
@ -282,7 +282,7 @@ func writeStateToTempCAR(bs blockstore.Blockstore, roots ...cid.Cid) (string, er
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// ignore things we don't have, the state tree is incomplete.
|
// ignore things we don't have, the state tree is incomplete.
|
||||||
if has, err := bs.Has(link.Cid); err != nil {
|
if has, err := bs.Has(context.Background(), link.Cid); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if has {
|
} else if has {
|
||||||
out = append(out, link)
|
out = append(out, link)
|
||||||
@ -317,7 +317,7 @@ func LoadBlockstore(vectorCAR schema.Base64EncodedBytes) (blockstore.Blockstore,
|
|||||||
defer r.Close() // nolint
|
defer r.Close() // nolint
|
||||||
|
|
||||||
// Load the CAR embedded in the test vector into the Blockstore.
|
// Load the CAR embedded in the test vector into the Blockstore.
|
||||||
_, err = car.LoadCar(bs, r)
|
_, err = car.LoadCar(context.Background(), bs, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to load state tree car from test vector: %s", err)
|
return nil, fmt.Errorf("failed to load state tree car from test vector: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user