1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 12:19:04 +01:00

12 lines
258 B
Rust
Raw Normal View History

2018-05-23 20:39:15 -07:00
// <workers>
2019-06-13 17:10:51 -04:00
use actix_web::{web, App, HttpResponse, HttpServer};
2018-05-23 20:39:15 -07:00
2019-12-29 03:32:56 +09:00
#[actix_rt::main]
async fn main() {
2019-06-13 17:10:51 -04:00
HttpServer::new(|| {
App::new().route("/", web::get().to(|| HttpResponse::Ok()))
})
.workers(4); // <- Start 4 workers
2018-05-23 20:39:15 -07:00
}
// </workers>