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

fix: hanging server #806

Merged
merged 1 commit into from
Mar 21, 2022
Merged

fix: hanging server #806

merged 1 commit into from
Mar 21, 2022

Conversation

tpraxl
Copy link
Contributor

@tpraxl tpraxl commented Mar 20, 2022

Since the update to actix-rt@2.3 (f413996), the web server hasn't been
started, when we executed cargo run -p rust-code-analysis-web.

It froze once actix_rt::System::new().run()?; was called,
effectively preventing the execution of the code below.

By looking at the actix-rt examples and changing the code to be more
like the examples, I was able to fix this.
The webserver now behaves as expected.

Since the update to actix-rt@2.3 (f413996), the web server hasn't been
started, when we executed `cargo run -p rust-code-analysis-web`.

It froze once `actix_rt::System::new().run()?;` was called,
effectively preventing the execution of the code below.

By looking at the actix-rt examples and changing the code to be more
like the examples, I was able to fix this.
The webserver now behaves as expected.
@codecov-commenter
Copy link

Codecov Report

Merging #806 (062c679) into master (97e576b) will increase coverage by 0.30%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #806      +/-   ##
==========================================
+ Coverage   40.74%   41.04%   +0.30%     
==========================================
  Files          51       51              
  Lines        7020     7016       -4     
  Branches      991      988       -3     
==========================================
+ Hits         2860     2880      +20     
+ Misses       3481     3463      -18     
+ Partials      679      673       -6     
Impacted Files Coverage Δ
rust-code-analysis-web/src/main.rs 5.00% <0.00%> (-0.27%) ⬇️
rust-code-analysis-web/src/web/server.rs 62.56% <0.00%> (+0.74%) ⬆️
src/langs.rs 90.00% <0.00%> (-10.00%) ⬇️
src/metrics/nargs.rs 75.09% <0.00%> (+0.38%) ⬆️
src/metrics/nom.rs 73.57% <0.00%> (+0.51%) ⬆️
src/spaces.rs 72.72% <0.00%> (+1.21%) ⬆️
src/getter.rs 80.43% <0.00%> (+3.91%) ⬆️
src/node.rs 86.53% <0.00%> (+15.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97e576b...062c679. Read the comment docs.

@Luni-4 Luni-4 requested a review from calixteman March 21, 2022 07:55
Copy link
Collaborator

@marco-c marco-c left a comment

Choose a reason for hiding this comment

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

Thanks!

@marco-c marco-c merged commit 08c61f4 into mozilla:master Mar 21, 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 this pull request may close these issues.

3 participants