multithreading
This commit is contained in:
@@ -49,6 +49,7 @@ async fn main() -> std::io::Result<()> {
|
||||
)
|
||||
.service(fs::Files::new("/", "static").index_file("index.html"))
|
||||
})
|
||||
.workers(8)
|
||||
// .bind_openssl(("0.0.0.0", 18080), builder)?
|
||||
.bind(("0.0.0.0", 18080))?
|
||||
.run()
|
||||
|
||||
Reference in New Issue
Block a user