diff --git a/miner/warmup.go b/miner/warmup.go index d0b8c5b3511..5340675b2fd 100644 --- a/miner/warmup.go +++ b/miner/warmup.go @@ -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 { @@ -40,6 +41,7 @@ func (m *Miner) winPoStWarmup(ctx context.Context) error { } sector = abi.SectorNumber(b) + break out } }