Tweak doc

This commit is contained in:
Vladimir Mihailenco 2018-06-11 13:26:24 +03:00
parent 0269263441
commit e693227e84
1 changed files with 4 additions and 3 deletions

View File

@ -65,10 +65,11 @@ type Options struct {
PoolTimeout time.Duration PoolTimeout time.Duration
// Amount of time after which client closes idle connections. // Amount of time after which client closes idle connections.
// Should be less than server's timeout. // Should be less than server's timeout.
// Default is 5 minutes. // Default is 5 minutes. -1 disables idle timeout check.
IdleTimeout time.Duration IdleTimeout time.Duration
// Frequency of idle checks. // Frequency of idle checks made by idle connections reaper.
// Default is 1 minute. -1 disables idle check. // Default is 1 minute. -1 disables idle connections reaper,
// but idle connections are still discarded by the client.
IdleCheckFrequency time.Duration IdleCheckFrequency time.Duration
// Enables read only queries on slave nodes. // Enables read only queries on slave nodes.