1
0
mirror of https://github.com/actix/actix-website synced 2025-02-23 04:33:03 +01:00
2019-06-13 17:10:51 -04:00

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>