From a196ef7a7e050656815fd81d0cf4221ead8fbc91 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Mon, 28 Oct 2024 15:35:52 +1100 Subject: [PATCH] Increase default vote duration to 2 minutes (#270) * Increase default vote duration to 2 minutes * Update comment --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index b1ccc8762..f33cf84bb 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, @@ -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