Skip to content

Commit

Permalink
Update actix-rt to 2.3 (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Oct 25, 2021
1 parent 9608b7f commit f413996
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 24 deletions.
116 changes: 95 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-code-analysis-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MPL-2.0"
name = "rust-code-analysis-web"

[dependencies]
actix-rt = "^1.0"
actix-rt = "^2.3"
actix-web = "^3.3"
clap = "^2.33"
futures = "^0.3"
Expand Down
4 changes: 2 additions & 2 deletions rust-code-analysis-web/src/web/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ fn ping() -> HttpResponse {
}

pub fn run(host: String, port: u16, n_threads: usize) -> std::io::Result<()> {
let _ = actix_rt::System::new("server");
let mut rt = Runtime::new()?;
actix_rt::System::new().run()?;
let rt = Runtime::new()?;
let max_size = 1024 * 1024 * 4;

rt.block_on(async move {
Expand Down

0 comments on commit f413996

Please sign in to comment.