longer time between refresh

This commit is contained in:
Robin Appelman 2021-11-12 14:34:17 +00:00 committed by GitHub
commit aec77ae756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))