forked from mirror/redis
Lower ticker duration.
This commit is contained in:
parent
cc0ee10019
commit
7da995891e
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue