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