From e693227e84e5f5261b78c195127b51f129deb012 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 11 Jun 2018 13:26:24 +0300 Subject: [PATCH] Tweak doc --- options.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/options.go b/options.go index 35ce0619..fd17cbb2 100644 --- a/options.go +++ b/options.go @@ -65,10 +65,11 @@ type Options struct { PoolTimeout time.Duration // Amount of time after which client closes idle connections. // Should be less than server's timeout. - // Default is 5 minutes. + // Default is 5 minutes. -1 disables idle timeout check. IdleTimeout time.Duration - // Frequency of idle checks. - // Default is 1 minute. -1 disables idle check. + // Frequency of idle checks made by idle connections reaper. + // Default is 1 minute. -1 disables idle connections reaper, + // but idle connections are still discarded by the client. IdleCheckFrequency time.Duration // Enables read only queries on slave nodes.