Skip to content

Commit

Permalink
fix error handling for skipping actor limit (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terryhung authored Jun 24, 2023
1 parent c74c69c commit 956a72f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/actorstate/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func (t *Task) ProcessActors(ctx context.Context, current *types.TipSet, execute

if t.exceedsActorChangeLimit(actors) {
err := fmt.Errorf("task skipped - max limit for handling actor state changes")
return nil, report, err
report.ErrorsDetected = err
return nil, report, nil
}

data := make(model.PersistableList, 0, len(actors))
Expand Down

0 comments on commit 956a72f

Please sign in to comment.