Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elmattic/actors review f28 #1343

Merged
merged 3 commits into from
Jan 6, 2022
Merged

Elmattic/actors review f28 #1343

merged 3 commits into from
Jan 6, 2022

Conversation

elmattic
Copy link
Contributor

@elmattic elmattic commented Jan 3, 2022

Summary of changes
Changes introduced in this pull request:

  • Fix state snapshots that could not be cleared

This is the minimal fix to clear the state snapshot even if the code previously errors.

Reference issue to close (if applicable)

Closes #1305

Other information and links

A discussion could be started if it would be interesting, necessary or even possible to refactor the sending code.
(e.g. using Drop trait on a value returned by StateTree::snapshot that will take care of clearing the snapshot, thus emulating Go defer).

@noot
Copy link
Contributor

noot commented Jan 6, 2022

@elmattic could you run make lint and fix the errors?

@elmattic
Copy link
Contributor Author

elmattic commented Jan 6, 2022

@elmattic could you run make lint and fix the errors?

sure

@q9f q9f mentioned this pull request Jan 6, 2022
3 tasks
@noot noot merged commit 87ab772 into main Jan 6, 2022
@noot noot deleted the elmattic/actors-review-F28 branch January 6, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

F28: Forest may not clear state snapshots if a fatal error occurs
2 participants