Skip to content

Avoid panics in 'StmInitializer' #472

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

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

jpraynaud
Copy link
Member

This PR attempts to fix some panics that occur when a StmInitializer creates a StmSigner if the initializer is not registered.

In that case, the new_signer will return an error instead.

Which can occur when an initializer is not registered.
Returns an error instead.
@jpraynaud jpraynaud marked this pull request as ready for review September 1, 2022 12:33
Copy link
Contributor

@iquerejeta iquerejeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@github-actions
Copy link

github-actions bot commented Sep 1, 2022

Unit Test Results

    7 files  ±0    22 suites  ±0   1m 57s ⏱️ -14s
293 tests ±0  293 ✔️ ±0  0 💤 ±0  0 ±0 
294 runs  ±0  294 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 29e33c7. ± Comparison against base commit e0916d3.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
src/stm.rs - stm::StmSigner<D> ‑ new_epoch (line 401)
src/stm.rs - stm::StmSigner<D> ‑ new_epoch (line 404)

@jpraynaud jpraynaud merged commit 74e37fa into main Sep 1, 2022
@jpraynaud jpraynaud deleted the jpraynaud/fix-avoid-panics-initializer branch September 1, 2022 14:51
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.

3 participants