Skip to content

Commit 9384507

Browse files
committed
Bump peer reconnection interval to 1 minute
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.
1 parent 8bfa8ec commit 9384507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub(crate) const LDK_PAYMENT_RETRY_TIMEOUT: Duration = Duration::from_secs(10);
5252
pub(crate) const RESOLVED_CHANNEL_MONITOR_ARCHIVAL_INTERVAL: u32 = 6;
5353

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

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

0 commit comments

Comments
 (0)