From bdb9a55e6c7bb5d68d1d199a5f4efe2c81f3093d Mon Sep 17 00:00:00 2001 From: Dom Zippilli Date: Wed, 12 Jul 2023 11:54:10 -0700 Subject: [PATCH] switch missed tick behavior to delay instead of default burst --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 5a3389e..de7c166 100644 --- a/src/main.rs +++ b/src/main.rs @@ -759,6 +759,7 @@ async fn start_ldk() { let stop_connect = Arc::clone(&stop_listen_connect); tokio::spawn(async move { let mut interval = tokio::time::interval(Duration::from_secs(1)); + interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Delay); loop { interval.tick().await; match disk::read_channel_peer_data(Path::new(&peer_data_path)) { -- 2.30.2