fix lotus-soup build
This commit is contained in:
parent
e8df325796
commit
0eec00055f
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user