Process config before using it
This commit is contained in:
parent
4f69f5cb21
commit
26ee2ff019
3 changed files with 40 additions and 19 deletions
|
|
@ -31,6 +31,6 @@ async fn recurring_task(state: &Server) {
|
|||
pub async fn run(state: Server) {
|
||||
loop {
|
||||
recurring_task(&state).await;
|
||||
tokio::time::sleep(state.config.repo.update_delay).await;
|
||||
tokio::time::sleep(state.config.repo_update_delay).await;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue