mirror of
https://codeberg.org/icewind/log-archiver.git
synced 2026-06-03 17:44:06 +02:00
longer time between refresh
This commit is contained in:
parent
4cb1369d2b
commit
aec77ae756
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ async fn main() -> Result<(), MainError> {
|
||||||
eprintln!("{:?}", e);
|
eprintln!("{:?}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(Duration::from_secs(60)).await;
|
sleep(Duration::from_secs(300)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
@ -82,7 +82,7 @@ async fn archive(database_url: &str, api_host: &str, log_target: &Path) -> Resul
|
||||||
|
|
||||||
println!("{}", last_archived);
|
println!("{}", last_archived);
|
||||||
|
|
||||||
sleep(Duration::from_millis(200)).await;
|
sleep(Duration::from_millis(500)).await;
|
||||||
|
|
||||||
let response: Response = client
|
let response: Response = client
|
||||||
.get(&format!("{}/api/v1/log/{}", api_host, last_archived))
|
.get(&format!("{}/api/v1/log/{}", api_host, last_archived))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue