going somewhere

This commit is contained in:
didier amyot committed 2023-02-08 09:14:27 -05:00
1 parent e7cec774d8
commit 8449cf94ee
9 files changed
+106 -24

No files matched your search

+4 -2
View File
@@ -64,8 +64,8 @@ impl FromRequest for MiniJinjaRenderer {
async fn print_shit() -> std::io::Result<()>{
let mut i = 0;
loop {
sleep(Duration::from_millis(1000)).await;
println!("he he! {:?}", i);
sleep(Duration::from_millis(10_000)).await;
println!("Loop on a different thread {:?}", i);
i +=1;
}
}
@@ -96,6 +96,8 @@ pub async fn web_ui_main(port: u16, enable_template_autoreload: bool) -> std::io
.service(views::actions)
.service(views::overview)
.service(views::overview_submit_button)
.service(views::actions_partials)
.service(views::static_file)
.service(views::push_event)
.wrap(ErrorHandlers::new().handler(StatusCode::NOT_FOUND, not_found))
.wrap(Logger::default())