increase workers for more concurrency
This commit is contained in:
parent
06470d2db6
commit
5f50a7dd9a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue