Skip to content

Commit

Permalink
Increase default vote duration to 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Oct 15, 2024
1 parent f0a4472 commit 9304dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9304dbb

Please sign in to comment.