use std::time::Duration; use chrono::Local; use tokio::time; use crate::settings::Settings; #[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) } }