diff --git a/pool.go b/pool.go index 36fe5cb..52a16f1 100644 --- a/pool.go +++ b/pool.go @@ -224,7 +224,7 @@ func (p *Pool) putWorker(worker *Worker) { worker.recycleTime = time.Now() p.lock.Lock() p.workers = append(p.workers, worker) - //通知有一个空闲的worker + // notify there is available worker p.cond.Signal() p.lock.Unlock() } diff --git a/pool_func.go b/pool_func.go index fbcbe9d..aff43cb 100644 --- a/pool_func.go +++ b/pool_func.go @@ -227,7 +227,7 @@ func (p *PoolWithFunc) putWorker(worker *WorkerWithFunc) { worker.recycleTime = time.Now() p.lock.Lock() p.workers = append(p.workers, worker) - //通知有一个空闲的worker + // notify there is available worker p.cond.Signal() p.lock.Unlock() }