Compare commits
No commits in common. "c830c60e755a7f3818d713206d7f29c680360b37" and "06470d2db61d27853df2a28e5a881a595a472eb9" have entirely different histories.
c830c60e75
...
06470d2db6
2 changed files with 1 additions and 2 deletions
|
@ -194,7 +194,6 @@ 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);
|
||||||
|
|
|
@ -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(4)
|
.workers(2)
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue