This commit is contained in:
Andy Pan 2018-05-20 10:23:49 +08:00
parent 92bcb74066
commit c5e17c566b
1 changed files with 1 additions and 2 deletions

View File

@ -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
}