diff --git a/pool.go b/pool.go index 5ac1487..d628784 100644 --- a/pool.go +++ b/pool.go @@ -226,7 +226,7 @@ func (p *Pool) putWorker(worker *Worker) { worker.recycleTime = time.Now() p.lock.Lock() p.workers = append(p.workers, worker) - // notify there is available worker + // Notify there is an available worker put back into queue. p.cond.Signal() p.lock.Unlock() } diff --git a/pool_func.go b/pool_func.go index 8aab29a..b0dfbd6 100644 --- a/pool_func.go +++ b/pool_func.go @@ -229,7 +229,7 @@ func (p *PoolWithFunc) putWorker(worker *WorkerWithFunc) { worker.recycleTime = time.Now() p.lock.Lock() p.workers = append(p.workers, worker) - // notify there is available worker + // Notify there is an available worker put back into queue. p.cond.Signal() p.lock.Unlock() }