Make web server address configurable
This commit is contained in:
parent
3a4a4c1cfa
commit
8b53a22b78
3 changed files with 20 additions and 10 deletions
|
|
@ -28,9 +28,9 @@ async fn recurring_task(state: &Server) {
|
|||
.await;
|
||||
}
|
||||
|
||||
pub async fn run(state: Server) {
|
||||
pub async fn run(server: Server) {
|
||||
loop {
|
||||
recurring_task(&state).await;
|
||||
tokio::time::sleep(state.config.repo_update_delay).await;
|
||||
recurring_task(&server).await;
|
||||
tokio::time::sleep(server.config.repo_update_delay).await;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue