diff --git a/cmd/lotus-shed/cid.go b/cmd/lotus-shed/cid.go index 61e02a9d2..1fe8a7dc1 100644 --- a/cmd/lotus-shed/cid.go +++ b/cmd/lotus-shed/cid.go @@ -95,7 +95,7 @@ var cidFromCarCmd = &cli.Command{ Usage: "Get the manifest CID from a car file", ArgsUsage: "[path]", Action: func(cctx *cli.Context) error { - ctx := context.TODO() + ctx := cctx.Context cf := cctx.Args().Get(0) f, err := os.OpenFile(cf, os.O_RDONLY, 0664)