Skip to content

Commit f413996

Browse files
authored
Update actix-rt to 2.3 (#687)
1 parent 9608b7f commit f413996

File tree

3 files changed

+98
-24
lines changed

3 files changed

+98
-24
lines changed

Cargo.lock

Lines changed: 95 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-code-analysis-web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MPL-2.0"
1212
name = "rust-code-analysis-web"
1313

1414
[dependencies]
15-
actix-rt = "^1.0"
15+
actix-rt = "^2.3"
1616
actix-web = "^3.3"
1717
clap = "^2.33"
1818
futures = "^0.3"

rust-code-analysis-web/src/web/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ fn ping() -> HttpResponse {
220220
}
221221

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

227227
rt.block_on(async move {

0 commit comments

Comments
 (0)