diff --git a/storage/sealing/fsm.go b/storage/sealing/fsm.go index 43be0077c..7bfb0c340 100644 --- a/storage/sealing/fsm.go +++ b/storage/sealing/fsm.go @@ -17,7 +17,7 @@ import ( func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface{}, uint64, error) { next, err := m.plan(events, user.(*SectorInfo)) if err != nil || next == nil { - return nil, 0, err + return nil, uint64(len(events)), err } return func(ctx statemachine.Context, si SectorInfo) error {