Yet another another logging fix
All checks were successful
Run Tests on Code / run-tests (push) Successful in 11s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 11s
This commit is contained in:
parent
85f8b97607
commit
ee5a159431
1 changed files with 2 additions and 3 deletions
|
@ -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(_) => {}
|
||||
|
|
Loading…
Reference in a new issue