From 26bbd9fb9d13207ed6f32d769bfb8ebfb548f795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 18 Sep 2020 03:00:31 +0200 Subject: [PATCH] wdpost: append is hard --- cmd/lotus-shed/bitfield.go | 2 +- storage/wdpost_run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-shed/bitfield.go b/cmd/lotus-shed/bitfield.go index 9cc632283..442cbef48 100644 --- a/cmd/lotus-shed/bitfield.go +++ b/cmd/lotus-shed/bitfield.go @@ -319,7 +319,7 @@ var bitFieldEncodeCmd = &cli.Command{ if err != nil { return err } - defer f.Close() + defer f.Close() // nolint out := bitfield.New() for { diff --git a/storage/wdpost_run.go b/storage/wdpost_run.go index 532d7144b..463c7a3c5 100644 --- a/storage/wdpost_run.go +++ b/storage/wdpost_run.go @@ -479,7 +479,7 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di dline.Info, ts *ty } sinfos = append(sinfos, ssi...) - partitions = append(params.Partitions, miner.PoStPartition{ + partitions = append(partitions, miner.PoStPartition{ Index: uint64(batchPartitionStartIdx + partIdx), Skipped: skipped, })