From 43207087563316f59efdf679db40810ec37d988b Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Fri, 7 Dec 2018 01:11:54 +0800 Subject: [PATCH] supplement annotations --- pool.go | 2 +- pool_func.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }