diff --git a/src/api/camp_form.rs b/src/api/camp_form.rs index 46d082d..73937a8 100644 --- a/src/api/camp_form.rs +++ b/src/api/camp_form.rs @@ -194,6 +194,7 @@ impl CampForm { #[post("/api/camp-form")] pub async fn camp_form(MultipartForm(form): MultipartForm) -> HttpResponse { + info!("Starting camp form work: {:?}", form); let full_name = format!("{} {}", form.first_name.0, form.last_name.0); let map = (&form).into(); let future = store_camp_form(map); diff --git a/src/main.rs b/src/main.rs index 534c887..ad12f44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ async fn main() -> std::io::Result<()> { .service(Files::new("/", "./public").index_file("index.html")) }) .bind(("localhost", 4242))? - .workers(2) + .workers(4) .run() .await }