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

Get rid of panics in commit_monitor #345

Closed
joepio opened this issue Mar 23, 2022 · 0 comments · Fixed by #376
Closed

Get rid of panics in commit_monitor #345

joepio opened this issue Mar 23, 2022 · 0 comments · Fixed by #376

Comments

@joepio
Copy link
Member

joepio commented Mar 23, 2022

Handler<CommitMessage> has a bunch of .unwrap()s because the handle function in actix does not return a Result.

I don't want to panic the server when anything here goes wrong (at least not in production). I'd rather log the error, and keep the thing going.

Maybe use catch_unwind? Edit: does not seem to work, I can't move the logic to a closure

@joepio joepio added this to the v0.32 self-hosting milestone Mar 23, 2022
joepio added a commit that referenced this issue Mar 23, 2022
@joepio joepio mentioned this issue Mar 23, 2022
4 tasks
joepio added a commit that referenced this issue Mar 23, 2022
@joepio joepio reopened this Mar 23, 2022
joepio added a commit that referenced this issue Apr 9, 2022
joepio added a commit that referenced this issue Apr 9, 2022
joepio added a commit that referenced this issue Apr 9, 2022
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 a pull request may close this issue.

1 participant