Skip to content

Commit

Permalink
Merge pull request #108 from domZippilli/2023-07-relax-peer-reconnect…
Browse files Browse the repository at this point in the history
…-tick-behavior

Switch missed tick behavior to delay instead of default burst
  • Loading branch information
TheBlueMatt authored Jul 12, 2023
2 parents 30a9cb7 + bdb9a55 commit 4d3a5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4d3a5b0

Please sign in to comment.