wdpost: append is hard

This commit is contained in:
Łukasz Magiera 2020-09-18 03:00:31 +02:00
parent 57c1eac37a
commit 26bbd9fb9d
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ var bitFieldEncodeCmd = &cli.Command{
if err != nil {
return err
}
defer f.Close()
defer f.Close() // nolint
out := bitfield.New()
for {

View File

@ -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,
})