From 6dea0a6281232b41047e8ed5e01370dc40015a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 30 Nov 2020 23:19:16 +0100 Subject: [PATCH] worker: fix math-related issue --- cmd/lotus-seal-worker/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-seal-worker/tasks.go b/cmd/lotus-seal-worker/tasks.go index 363a6285b..bafd98951 100644 --- a/cmd/lotus-seal-worker/tasks.go +++ b/cmd/lotus-seal-worker/tasks.go @@ -53,7 +53,7 @@ var tasksDisableCmd = &cli.Command{ func taskAction(tf func(a api.WorkerAPI, ctx context.Context, tt sealtasks.TaskType) error) func(cctx *cli.Context) error { return func(cctx *cli.Context) error { - if cctx.NArg() != 0 { + if cctx.NArg() != 1 { return xerrors.Errorf("expected 1 argument") }