From 5f50a7dd9a559da1ea40c96ffe9e2f44e8a1d819 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 19 Jun 2025 20:56:30 -0500 Subject: [PATCH 1/2] increase workers for more concurrency --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } From c830c60e755a7f3818d713206d7f29c680360b37 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 19 Jun 2025 20:56:42 -0500 Subject: [PATCH 2/2] make camp form log the form itself --- src/api/camp_form.rs | 1 + 1 file changed, 1 insertion(+) 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);