-
Notifications
You must be signed in to change notification settings - Fork 26
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: migrate web server to Actix Web #229
Conversation
The pull requests are in need of a rebase after the migration to tracing, but other than that I hold no objections to moving forward with Actix Web once that is resolved. |
I haven't used actix-web in a while and just seeing the much better out of the box error handling is refreshing.
Is that worth it given hyperium/h2#531? Or does actix-web have a solution for it? |
Actix Web is already thread-per-core so each worker would have its own "instance" of h2, meaning the mutexes are uncontended. IIRC things are fast in such cases. |
This is in need of a rebase again. Can you handle this? |
4fbb06c
to
7c50788
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.
ahh yes - #[get("/crate/:name")]
+ #[get("/crate/{name}")] |
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.
That worked! I found no other issues in this migration. 👍
full-fat Actix Web conversion including (somewhat necessary) improvements to error handling
pros:
cons:
tokei: