-
Notifications
You must be signed in to change notification settings - Fork 18
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(iota-indexer): Do not panic on errors in iota_indexer::framework::runner::run #1701
Conversation
b582950
to
b79d712
Compare
b79d712
to
8fe9450
Compare
…work::runner::run
8fe9450
to
5ea3777
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've spotted an unwrap
in the run
function
.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only minor suggestion to fix rustfmt
and the typo you mentioned above.
@sergiupopescu199 I skipped it since it seemed to not be in scope of #1569 |
@samuel-rufi Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like clippy is failing the CI check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tomxey looks good. Let just a few suggestions to improve the patch.
Plus, mind clippy
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🐻❄️
Description of change
Refactored iota_indexer::framework::runner::run to return the errors from handlers instead of panicking, motivated by #1569. Refactored the function to reduce code duplication.
Links to any relevant issues
fix #1569
Type of change
How the change has been tested
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.