This commit is contained in:
邹宗楠
2022-10-22 22:45:36 +08:00
parent c862340c56
commit 2ed93fe209
66 changed files with 10 additions and 156 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"runtime/debug"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/utils"
)
@@ -60,7 +59,6 @@ func callHandler(handler func()) (retVal interface{}) {
func taskFun(taskChan chan *TaskParam, index int) {
for {
taskParam := <-taskChan
baseapi.SugarLogger.Debugf("routine:%d, handle task:%v", index, taskParam.handler)
result := callHandler(taskParam.handler)
if taskParam.resultChan != nil {
taskParam.resultChan <- result