increase workers for more concurrency

This commit is contained in:
Chris Cochrun 2025-06-19 20:56:30 -05:00
parent 06470d2db6
commit 5f50a7dd9a

View file

@ -100,7 +100,7 @@ async fn main() -> std::io::Result<()> {
.service(Files::new("/", "./public").index_file("index.html")) .service(Files::new("/", "./public").index_file("index.html"))
}) })
.bind(("localhost", 4242))? .bind(("localhost", 4242))?
.workers(2) .workers(4)
.run() .run()
.await .await
} }