From 9304dbb22ff24d0836d101d6896dc5b565c3a6d8 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Tue, 15 Oct 2024 15:29:05 +1100 Subject: [PATCH 1/2] Increase default vote duration to 2 minutes --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index b1ccc8762..62ee71226 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,7 +15,7 @@ pub struct Config { pub request_timeout: Duration, /// The interval over which votes are remembered when determining our external IP. A lower - /// interval will respond faster to IP changes. Default is 30 seconds. + /// interval will respond faster to IP changes. Default is 2 minutes. pub vote_duration: Duration, /// The timeout after which a `QueryPeer` in an ongoing query is marked unresponsive. @@ -121,7 +121,7 @@ impl ConfigBuilder { let config = Config { enable_packet_filter: false, request_timeout: Duration::from_secs(1), - vote_duration: Duration::from_secs(30), + vote_duration: Duration::from_secs(120), query_peer_timeout: Duration::from_secs(2), query_timeout: Duration::from_secs(60), request_retries: 1, From ce1f2b9048713cfb35c745c61844bbd5fc53573e Mon Sep 17 00:00:00 2001 From: Age Manning Date: Wed, 23 Oct 2024 14:27:34 +1100 Subject: [PATCH 2/2] Update comment --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 62ee71226..f33cf84bb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -161,7 +161,7 @@ impl ConfigBuilder { } /// The interval over which votes are remembered when determining our external IP. A lower - /// interval will respond faster to IP changes. Default is 30 seconds. + /// interval will respond faster to IP changes. Default is 2 minutes. pub fn vote_duration(&mut self, vote_duration: Duration) -> &mut Self { self.config.vote_duration = vote_duration; self