Lower ticker duration.

This commit is contained in:
Vladimir Mihailenco 2015-05-01 13:24:24 +03:00
parent cc0ee10019
commit 7da995891e
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ func (c *ClusterClient) scheduleReload() {
// reaper closes idle connections to the cluster. // reaper closes idle connections to the cluster.
func (c *ClusterClient) reaper() { func (c *ClusterClient) reaper() {
ticker := time.NewTicker(5 * time.Minute) ticker := time.NewTicker(time.Minute)
defer ticker.Stop() defer ticker.Stop()
for _ = range ticker.C { for _ = range ticker.C {
c.clientsMx.RLock() c.clientsMx.RLock()