Skip to content

Commit

Permalink
wdpost: append is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Sep 18, 2020
1 parent 57c1eac commit 26bbd9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/lotus-shed/bitfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ var bitFieldEncodeCmd = &cli.Command{
if err != nil {
return err
}
defer f.Close()
defer f.Close() // nolint

out := bitfield.New()
for {
Expand Down
2 changes: 1 addition & 1 deletion storage/wdpost_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 26bbd9f

Please sign in to comment.