rm a redundant creation of goroutines (#179)

Co-authored-by: husyhu <husyhu@qq.com>
This commit is contained in:
Husy
2023-02-17 17:01:16 +08:00
committed by GitHub
co-authored by husyhu
parent 15f3f6d52e
commit 8430749ec4
-2
View File
@@ -43,7 +43,6 @@ func (p *WorkerPool) dispatch() {
}
func startWorker(taskChan chan func()) {
go func() {
var task func()
var ok bool
for {
@@ -54,5 +53,4 @@ func startWorker(taskChan chan func()) {
// Execute the task.
task()
}
}()
}