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

refactor(governance): update StateWriteExt::signal_upgrade comment #4789

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

syvb
Copy link
Contributor

@syvb syvb commented Aug 3, 2024

Describe your changes

StateWriteExt::signal_upgrade is infallible and doesn't await on anything, so its function signature can be simplified to not be async and not return a Result<()> that's always Ok(()).

Also fixes a comment referring to TOTAL_HALT_COUNT, which is now a boolean and not a count.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    No change to behavior

@cronokirby
Copy link
Contributor

cronokirby commented Aug 5, 2024

The comment change is good; for the other change, right now it can be done, but I like the ability to add fallibility and asyncness to the inner logic without needing to change the callsites. For example, if we need to read some state, for example. So I don't think we should really touch that for now.

@syvb syvb force-pushed the simple-signal_upgrade branch from 2172153 to 88d3a3e Compare August 6, 2024 00:08
@syvb syvb changed the title refactor(governance): simplify StateWriteExt::signal_upgrade signature refactor(governance): update StateWriteExt::signal_upgrade comment Aug 6, 2024
@syvb
Copy link
Contributor Author

syvb commented Aug 6, 2024

@cronokirby I updated the PR to just update the comment.

@cronokirby cronokirby merged commit dd369ae into penumbra-zone:main Aug 6, 2024
13 checks passed
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.

2 participants