use std::time::Duration; use chrono::Local; use tokio::time; use tokio::time::Instant; use crate::settings::Settings; #[allow(unused_variables)] pub async fn run_relay_loop(settings: Settings) { let default_duration = Duration::from_millis(10000); loop { let next_timestamp = Instant::now() + default_duration; time::sleep_until(next_timestamp).await; log::debug!("Relay loop: {}", Local::now().naive_local().time()) } }