mirror of
https://github.com/actix/actix-website
synced 2025-02-02 12:19:04 +01:00
9 lines
223 B
Rust
9 lines
223 B
Rust
|
// <workers>
|
||
|
use actix_web::{server::HttpServer, App, HttpResponse};
|
||
|
|
||
|
fn main() {
|
||
|
HttpServer::new(|| App::new().resource("/", |r| r.f(|_| HttpResponse::Ok())))
|
||
|
.workers(4); // <- Start 4 workers
|
||
|
}
|
||
|
// </workers>
|