fix lotus-soup build

This commit is contained in:
vyzo 2021-12-14 18:23:43 +02:00
parent e8df325796
commit 0eec00055f
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ func RetrieveData(t *TestEnvironment, ctx context.Context, client api.FullNode,
func ExtractCarData(ctx context.Context, rdata []byte, rpath string) []byte {
bserv := dstest.Bserv()
ch, err := car.LoadCar(bserv.Blockstore(), bytes.NewReader(rdata))
ch, err := car.LoadCar(ctx, bserv.Blockstore(), bytes.NewReader(rdata))
if err != nil {
panic(err)
}

View File

@ -182,7 +182,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
return nil, err
}
err = ds.Put(datastore.NewKey("miner-address"), minerAddr.Bytes())
err = ds.Put(context.Background(), datastore.NewKey("miner-address"), minerAddr.Bytes())
if err != nil {
return nil, err
}

View File

@ -30,7 +30,7 @@ func PreparePubsubTracer(t *TestEnvironment) (*PubsubTracer, error) {
tracedIP := t.NetClient.MustGetDataNetworkIP().String()
tracedAddr := fmt.Sprintf("/ip4/%s/tcp/4001", tracedIP)
host, err := libp2p.New(ctx,
host, err := libp2p.New(
libp2p.Identity(privk),
libp2p.ListenAddrStrings(tracedAddr),
)