mirror of
https://github.com/actix/actix-website
synced 2025-02-23 04:33:03 +01:00
11 lines
238 B
Rust
11 lines
238 B
Rust
// <workers>
|
|
use actix_web::{web, App, HttpResponse, HttpServer};
|
|
|
|
pub fn main() {
|
|
HttpServer::new(|| {
|
|
App::new().route("/", web::get().to(|| HttpResponse::Ok()))
|
|
})
|
|
.workers(4); // <- Start 4 workers
|
|
}
|
|
// </workers>
|