Update cmd/lotus-shed/cid.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Aayush Rajasekaran 2022-06-08 13:18:50 -04:00 committed by Aayush
parent b6a7e0553e
commit 131831ca61

View File

@ -95,7 +95,7 @@ var cidFromCarCmd = &cli.Command{
Usage: "Get the manifest CID from a car file", Usage: "Get the manifest CID from a car file",
ArgsUsage: "[path]", ArgsUsage: "[path]",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
ctx := context.TODO() ctx := cctx.Context
cf := cctx.Args().Get(0) cf := cctx.Args().Get(0)
f, err := os.OpenFile(cf, os.O_RDONLY, 0664) f, err := os.OpenFile(cf, os.O_RDONLY, 0664)