diff --git a/client.go b/client.go index 241bc9f..48e9c7d 100644 --- a/client.go +++ b/client.go @@ -912,7 +912,7 @@ func (c *HostClient) connsCleaner() { if mustStop { break } - time.Sleep(time.Second) + time.Sleep(10 * time.Second) } } diff --git a/workerpool.go b/workerpool.go index aeaf929..044ad11 100644 --- a/workerpool.go +++ b/workerpool.go @@ -49,7 +49,7 @@ func (wp *workerPool) Start() { case <-stopCh: return default: - time.Sleep(time.Second) + time.Sleep(10 * time.Second) } wp.clean() }