storagefsm: Fix double unlock with ready WaitDeals sectors
This commit is contained in:
parent
3be4984d9d
commit
881c722025
2
extern/storage-sealing/input.go
vendored
2
extern/storage-sealing/input.go
vendored
@ -93,7 +93,6 @@ func (m *Sealing) maybeStartSealing(ctx statemachine.Context, sector SectorInfo,
|
|||||||
if sector.CreationTime != 0 {
|
if sector.CreationTime != 0 {
|
||||||
cfg, err := m.getConfig()
|
cfg, err := m.getConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
m.inputLk.Unlock()
|
|
||||||
return false, xerrors.Errorf("getting storage config: %w", err)
|
return false, xerrors.Errorf("getting storage config: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +100,6 @@ func (m *Sealing) maybeStartSealing(ctx statemachine.Context, sector SectorInfo,
|
|||||||
sealTime := time.Unix(sector.CreationTime, 0).Add(cfg.WaitDealsDelay)
|
sealTime := time.Unix(sector.CreationTime, 0).Add(cfg.WaitDealsDelay)
|
||||||
|
|
||||||
if now.After(sealTime) {
|
if now.After(sealTime) {
|
||||||
m.inputLk.Unlock()
|
|
||||||
log.Infow("starting to seal deal sector", "sector", sector.SectorNumber, "trigger", "wait-timeout")
|
log.Infow("starting to seal deal sector", "sector", sector.SectorNumber, "trigger", "wait-timeout")
|
||||||
return true, ctx.Send(SectorStartPacking{})
|
return true, ctx.Send(SectorStartPacking{})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user