Update repo repeatedly

This commit is contained in:
Joscha 2023-08-04 20:05:38 +02:00
parent 0a555dd9b4
commit 980e84b0f6
5 changed files with 72 additions and 24 deletions

View file

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