Update repo repeatedly
This commit is contained in:
parent
0a555dd9b4
commit
980e84b0f6
5 changed files with 72 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue