mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
format codes
This commit is contained in:
parent
59ad1fa56c
commit
39951bd2f5
1
pool.go
1
pool.go
@ -182,7 +182,6 @@ func (p *Pool) decrRunning() {
|
||||
atomic.AddInt32(&p.running, -1)
|
||||
}
|
||||
|
||||
|
||||
// getWorker returns a available worker to run the tasks.
|
||||
func (p *Pool) getWorker() *Worker {
|
||||
var w *Worker
|
||||
|
||||
@ -187,7 +187,6 @@ func (p *PoolWithFunc) decrRunning() {
|
||||
atomic.AddInt32(&p.running, -1)
|
||||
}
|
||||
|
||||
|
||||
// getWorker returns a available worker to run the tasks.
|
||||
func (p *PoolWithFunc) getWorker() *WorkerWithFunc {
|
||||
var w *WorkerWithFunc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user