From 8605fcb42149c33390eb8bbcdd38e921ae6ba9bc Mon Sep 17 00:00:00 2001 From: Frederik B Date: Sun, 11 Apr 2021 21:03:07 +0200 Subject: [PATCH] Fix docstring and README example for ping timeout default --- README.md | 2 +- src/client/data/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9beb418..7d342cf 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ user_info = "I'm a test user for the irc crate." version = "irc:git:Rust" source = "https://github.com/aatxe/irc" ping_time = 180 -ping_timeout = 10 +ping_timeout = 20 burst_window_length = 8 max_messages_in_burst = 15 should_ghost = false diff --git a/src/client/data/config.rs b/src/client/data/config.rs index 45a4ee3..1f2216a 100644 --- a/src/client/data/config.rs +++ b/src/client/data/config.rs @@ -577,7 +577,7 @@ impl Config { /// Gets the amount of time in seconds for the client to disconnect after not receiving a ping /// response. - /// This defaults to 10 seconds when not specified. + /// This defaults to 20 seconds when not specified. pub fn ping_timeout(&self) -> u32 { self.ping_timeout.as_ref().cloned().unwrap_or(20) }