From c5e17c566b7cf3243187897de0c42d2d8f686300 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 20 May 2018 10:23:49 +0800 Subject: [PATCH] update --- pool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pool.go b/pool.go index 3a9394b..3d01531 100644 --- a/pool.go +++ b/pool.go @@ -18,7 +18,7 @@ type Pool struct { workerPool sync.Pool destroy chan sig m sync.Mutex - wg *sync.WaitGroup + wg sync.WaitGroup } func NewPool(size int) *Pool { @@ -26,7 +26,6 @@ func NewPool(size int) *Pool { capacity: int32(size), freeSignal: make(chan sig, size), destroy: make(chan sig, runtime.GOMAXPROCS(-1)), - wg: &sync.WaitGroup{}, } return p }