This commit is contained in:
苏尹岚
2021-04-01 14:16:09 +08:00
parent c3a2a619b9
commit 9a1093422a
4 changed files with 15 additions and 12 deletions

View File

@@ -6,6 +6,8 @@ import (
"fmt"
"runtime/debug"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/baseapi/utils"
)
@@ -86,6 +88,7 @@ func (p *Pool) callFun(func4Call func(), primaryID string, isAsync bool) (r inte
}
func (p *Pool) CallFun(func4Call func(), primaryID string) {
globals.SugarLogger.Debugf("CallFun %v", utils.Format4Output(p, true))
if p.curRoutineCount > 0 {
r := p.callFun(func4Call, primaryID, false)
if r != nil {