sealing: Fix noop plan loop

This commit is contained in:
Łukasz Magiera 2020-03-07 00:03:57 +01:00
parent 3a923e8aae
commit a2f4d467fd

View File

@ -17,7 +17,7 @@ import (
func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface{}, uint64, error) { func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface{}, uint64, error) {
next, err := m.plan(events, user.(*SectorInfo)) next, err := m.plan(events, user.(*SectorInfo))
if err != nil || next == nil { if err != nil || next == nil {
return nil, 0, err return nil, uint64(len(events)), err
} }
return func(ctx statemachine.Context, si SectorInfo) error { return func(ctx statemachine.Context, si SectorInfo) error {