Skip to content

Commit

Permalink
bgp: Stagger all timers by 200ms
Browse files Browse the repository at this point in the history
We're seeing some deadlocks; this should mitigate them while we figure
out what is going on.
  • Loading branch information
MaxFangX committed Jan 16, 2025
1 parent fadd5f1 commit 808ad03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lexe-ln/src/background_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ mod delay {
use std::time::Duration;

pub const CHANNEL_MANAGER: Duration = Duration::from_millis(0);
pub const NETWORK_GRAPH: Duration = Duration::from_secs(60);
pub const PEER_MANAGER: Duration = Duration::from_millis(0);
pub const PROB_SCORER: Duration = Duration::from_millis(0);
pub const PROCESS_EVENTS: Duration = Duration::from_millis(0);
pub const NETWORK_GRAPH: Duration = Duration::from_millis(200);
pub const PEER_MANAGER: Duration = Duration::from_millis(400);
pub const PROB_SCORER: Duration = Duration::from_millis(600);
pub const PROCESS_EVENTS: Duration = Duration::from_millis(800);
}

/// A Tokio-native background processor that runs on a single task and does not
Expand Down

0 comments on commit 808ad03

Please sign in to comment.