diff --git a/cmd/lotus-bench/import.go b/cmd/lotus-bench/import.go index af42eeec3..0aa4d1c4b 100644 --- a/cmd/lotus-bench/import.go +++ b/cmd/lotus-bench/import.go @@ -407,8 +407,8 @@ var importBenchCmd = &cli.Command{ ) if tsk := cctx.String("start-tipset"); tsk != "" { - cids, err := lcli.ParseTipSetString(tsk) - if err != nil { + var cids []cid.Cid + if cids, err = lcli.ParseTipSetString(tsk); err != nil { return xerrors.Errorf("failed to start genesis tipset key: %w", err) } start, err = cs.LoadTipSet(types.NewTipSetKey(cids...))