diff --git a/Cargo.toml b/Cargo.toml index 1247c7d..f212fe1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,6 @@ actix-multipart = "0.4.0" futures = "0.3" sanitize-filename = "0.3.0" log = "0.4" -env_logger = "0.9.0" \ No newline at end of file +env_logger = "0.9.0" +actix-web-httpauth = "0.6.0" +lazy_static = "1.4.0" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 353d077..07139af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -377,6 +377,7 @@ async fn main() -> std::io::Result<()> { )) }) .bind(format!("127.0.0.1:{}", args.port.to_string()))? + .workers(args.threads as usize) .run() .await }