Yet another another logging fix
All checks were successful
Run Tests on Code / run-tests (push) Successful in 11s

This commit is contained in:
Neshura 2024-05-06 22:57:41 +02:00
parent 85f8b97607
commit ee5a159431
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -120,13 +120,12 @@ pub(crate) async fn run() {
async fn idle(start: &DateTime<Utc>, config: &Config) {
let mut sleep_duration = Duration::seconds(30);
let info_msg = format!("Idling for {} seconds", sleep_duration.num_seconds());
info!(info_msg);
if Utc::now() - start > sleep_duration {
sleep_duration = Duration::seconds(60);
}
let info_msg = format!("Idling for {} seconds", sleep_duration.num_seconds());
info!(info_msg);
if let Some(status_url) = config.status_post_url.clone() {
match reqwest::get(status_url).await {
Ok(_) => {}