From 66f8f8aff22a6ef75c5206501e8548c91b82b045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 17 Dec 2021 13:05:44 +0100 Subject: [PATCH] fix shed --- cmd/lotus-shed/terminations.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-shed/terminations.go b/cmd/lotus-shed/terminations.go index a209e459f..0691f35da 100644 --- a/cmd/lotus-shed/terminations.go +++ b/cmd/lotus-shed/terminations.go @@ -84,7 +84,7 @@ var terminationsCmd = &cli.Command{ cst := cbor.NewCborStore(bs) store := adt.WrapStore(ctx, cst) - blk, err := cs.GetBlock(blkCid) + blk, err := cs.GetBlock(ctx, blkCid) if err != nil { return err } @@ -97,14 +97,14 @@ var terminationsCmd = &cli.Command{ cutoff := blk.Height - abi.ChainEpoch(lbp) for blk.Height > cutoff { - pts, err := cs.LoadTipSet(types.NewTipSetKey(blk.Parents...)) + pts, err := cs.LoadTipSet(ctx, types.NewTipSetKey(blk.Parents...)) if err != nil { return err } blk = pts.Blocks()[0] - msgs, err := cs.MessagesForTipset(pts) + msgs, err := cs.MessagesForTipset(ctx, pts) if err != nil { return err }