Check for stale workers and connections every 10 seconds instead of every second. This should reduce cleaners' overhead

This commit is contained in:
Aliaksandr Valialkin
2015-12-01 13:42:53 +02:00
parent a3965934a1
commit 235d4932da
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -912,7 +912,7 @@ func (c *HostClient) connsCleaner() {
if mustStop {
break
}
time.Sleep(time.Second)
time.Sleep(10 * time.Second)
}
}
+1 -1
View File
@@ -49,7 +49,7 @@ func (wp *workerPool) Start() {
case <-stopCh:
return
default:
time.Sleep(time.Second)
time.Sleep(10 * time.Second)
}
wp.clean()
}