fix miner terminate cli arg checks
This commit is contained in:
parent
4015ddbb4f
commit
4a114150f0
@ -444,9 +444,6 @@ var sectorsTerminateFlushCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
defer closer()
|
defer closer()
|
||||||
ctx := lcli.ReqContext(cctx)
|
ctx := lcli.ReqContext(cctx)
|
||||||
if cctx.Args().Len() != 1 {
|
|
||||||
return xerrors.Errorf("must pass sector number")
|
|
||||||
}
|
|
||||||
|
|
||||||
mcid, err := nodeApi.SectorTerminateFlush(ctx)
|
mcid, err := nodeApi.SectorTerminateFlush(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -471,9 +468,6 @@ var sectorsTerminatePendingCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
defer closer()
|
defer closer()
|
||||||
ctx := lcli.ReqContext(cctx)
|
ctx := lcli.ReqContext(cctx)
|
||||||
if cctx.Args().Len() != 1 {
|
|
||||||
return xerrors.Errorf("must pass sector number")
|
|
||||||
}
|
|
||||||
|
|
||||||
pending, err := nodeApi.SectorTerminatePending(ctx)
|
pending, err := nodeApi.SectorTerminatePending(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user