Skip to content

Commit

Permalink
fix skipCount
Browse files Browse the repository at this point in the history
  • Loading branch information
zlhwdsz committed Jul 29, 2021
1 parent e00cb29 commit 00e32d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/wdpost_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,12 @@ func (s *WindowPoStScheduler) runPoStCycle(ctx context.Context, di dline.Info, t
Proofs: nil,
}

skipCount := uint64(0)
postSkipped := bitfield.New()
somethingToProve := false

// Retry until we run out of sectors to prove.
for retries := 0; ; retries++ {
skipCount := uint64(0)
var partitions []miner.PoStPartition
var sinfos []proof2.SectorInfo
for partIdx, partition := range batch {
Expand Down Expand Up @@ -705,7 +705,6 @@ func (s *WindowPoStScheduler) runPoStCycle(ctx context.Context, di dline.Info, t
return nil, ctx.Err()
}

skipCount += uint64(len(ps))
for _, sector := range ps {
postSkipped.Set(uint64(sector.Number))
}
Expand Down

0 comments on commit 00e32d1

Please sign in to comment.