mirror of
https://github.com/actix/actix-website
synced 2025-01-23 00:25:55 +01:00
10 lines
237 B
Rust
10 lines
237 B
Rust
// <workers>
|
|
use actix_web::{web, App, HttpResponse, HttpServer};
|
|
|
|
#[actix_web::main]
|
|
async fn main() {
|
|
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok))).workers(4);
|
|
// <- Start 4 workers
|
|
}
|
|
// </workers>
|