Refactor repo update code again

This commit is contained in:
Joscha 2023-08-05 11:37:43 +02:00
parent 488ae76c72
commit b56d0df142
3 changed files with 77 additions and 74 deletions

View file

@ -1,7 +1,7 @@
mod config;
mod recurring;
mod state;
mod r#static;
mod update;
use std::{io, path::PathBuf};
@ -132,7 +132,7 @@ async fn run() -> anyhow::Result<()> {
select! {
_ = wait_for_signal() => {},
_ = server.serve(app) => {},
_ = update::repeatedly(state.clone()) => {},
_ = recurring::run(state.clone()) => {},
}
state.shut_down().await;