From aaa7bad491e00ff4871828b3a6823c756657f794 Mon Sep 17 00:00:00 2001 From: andy pan Date: Thu, 24 May 2018 19:32:45 +0800 Subject: [PATCH] rearrange task channel --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index 05dfe6a..b7b58ef 100644 --- a/pool.go +++ b/pool.go @@ -164,7 +164,7 @@ func (p *Pool) getWorker() *Worker { //} w = &Worker{ pool: p, - task: make(chan f, workerArgsCap), + task: make(chan f), } w.run() //p.workerPool.Put(w)