Skip to content

Commit

Permalink
Bump peer reconnection interval to 1 minute
Browse files Browse the repository at this point in the history
We periodically try to reconnect to known persisted peers, but so far
every 10 seconds, which resulted in very spammy reconnection logs.
Here, we bump the reconnection interval to once a minute, which is still
pretty low.
  • Loading branch information
tnull committed Feb 5, 2025
1 parent 8bfa8ec commit 9384507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub(crate) const LDK_PAYMENT_RETRY_TIMEOUT: Duration = Duration::from_secs(10);
pub(crate) const RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL: u32 = 6;

// The time in-between peer reconnection attempts.
pub(crate) const PEER_RECONNECTION_INTERVAL: Duration = Duration::from_secs(10);
pub(crate) const PEER_RECONNECTION_INTERVAL: Duration = Duration::from_secs(60);

// The time in-between RGS sync attempts.
pub(crate) const RGS_SYNC_INTERVAL: Duration = Duration::from_secs(60 * 60);
Expand Down

0 comments on commit 9384507

Please sign in to comment.