mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
fix: callback update.
This commit is contained in:
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…
x
Reference in New Issue
Block a user