Commit 3c7f2913 authored by AlexStocks's avatar AlexStocks

Fix: defaultTaskQNumber -> p.tQNumber

parent 1e0ac263
......@@ -85,7 +85,7 @@ func (p *TaskPool) run(id int, q chan task) {
// add task
func (p *TaskPool) AddTask(t task) {
id := atomic.AddUint32(&p.idx, 1) % defaultTaskQNumber
id := atomic.AddUint32(&p.idx, 1) % uint32(p.tQNumber)
select {
case <-p.done:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment