sealing: Fix noop plan loop
This commit is contained in:
parent
3a923e8aae
commit
a2f4d467fd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user