Compare commits

...

2 commits

Author SHA1 Message Date
Chris Cochrun
c830c60e75 make camp form log the form itself 2025-06-19 20:56:42 -05:00
Chris Cochrun
5f50a7dd9a increase workers for more concurrency 2025-06-19 20:56:30 -05:00
2 changed files with 2 additions and 1 deletions

View file

@ -194,6 +194,7 @@ impl CampForm {
#[post("/api/camp-form")] #[post("/api/camp-form")]
pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse { pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse {
info!("Starting camp form work: {:?}", form);
let full_name = format!("{} {}", form.first_name.0, form.last_name.0); let full_name = format!("{} {}", form.first_name.0, form.last_name.0);
let map = (&form).into(); let map = (&form).into();
let future = store_camp_form(map); let future = store_camp_form(map);

View file

@ -100,7 +100,7 @@ async fn main() -> std::io::Result<()> {
.service(Files::new("/", "./public").index_file("index.html")) .service(Files::new("/", "./public").index_file("index.html"))
}) })
.bind(("localhost", 4242))? .bind(("localhost", 4242))?
.workers(2) .workers(4)
.run() .run()
.await .await
} }