Skip to content

Commit

Permalink
Merge branch 'break-loop-when-found-warm-up-sector' of github.com:IPF…
Browse files Browse the repository at this point in the history
…SMain-Official/lotus into IPFSMain-Official-break-loop-when-found-warm-up-sector
  • Loading branch information
magik6k committed Nov 18, 2020
2 parents 707f9e3 + b636877 commit 379100b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miner/warmup.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {

var sector abi.SectorNumber = math.MaxUint64

out:
for dlIdx := range deadlines {
partitions, err := m.api.StateMinerPartitions(ctx, m.address, uint64(dlIdx), types.EmptyTSK)
if err != nil {
Expand All @@ -40,6 +41,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error {
}

sector = abi.SectorNumber(b)
break out
}
}

Expand Down

0 comments on commit 379100b

Please sign in to comment.