Merge pull request #1345 from filecoin-project/fix/noop-plan-loop
sealing: Fix noop plan loop
This commit is contained in:
commit
84a887cc58
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user