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

Use defer! rather than panic hooks for terminal restoration #65

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

drdo
Copy link
Owner

@drdo drdo commented Aug 13, 2024

This handles all of the possible ways we could possibly exit including through early returns and usage of ?.

Previously the terminal state would not be restored in some situations where we exit via ? (for example when there is an error in sync_snapshots).

This handles all of the possible ways we could possibly exit including through early returns and usage of ?
@drdo drdo merged commit 660c761 into main Aug 13, 2024
6 checks passed
@drdo drdo deleted the defer-terminal-restore branch August 13, 2024 14:38
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.

1 participant