From: Dom Zippilli Date: Wed, 12 Jul 2023 18:54:10 +0000 (-0700) Subject: switch missed tick behavior to delay instead of default burst X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=bdb9a55e6c7bb5d68d1d199a5f4efe2c81f3093d;p=ldk-sample switch missed tick behavior to delay instead of default burst --- 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)) {