Merge pull request #1345 from filecoin-project/fix/noop-plan-loop

sealing: Fix noop plan loop
This commit is contained in:
Whyrusleeping 2020-03-06 15:39:52 -08:00 committed by GitHub
commit 84a887cc58

View File

@ -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 {