fix: callback update.

pull/2148/head
Gordon 1 year ago
parent e82fd5a95e
commit b35c9e4382

@ -2,7 +2,6 @@ package memAsyncQueue
import ( import (
"errors" "errors"
"fmt"
"sync" "sync"
"time" "time"
) )
@ -39,7 +38,6 @@ func (mq *MemoryQueue) Initialize(workerCount int, bufferSize int) {
go func(workerID int) { go func(workerID int) {
defer mq.wg.Done() defer mq.wg.Done()
for task := range mq.taskChan { for task := range mq.taskChan {
fmt.Printf("Worker %d: Executing task\n", workerID)
task() // Execute the function task() // Execute the function
} }
}(i) }(i)

Loading…
Cancel
Save