This commit is contained in:
苏尹岚
2021-04-12 15:25:33 +08:00
parent 45898a424e
commit a3cebf2949
4 changed files with 6 additions and 5 deletions

View File

@@ -86,6 +86,7 @@ func (p *Pool) callFun(func4Call func(), primaryID string, isAsync bool) (r inte
globals.SugarLogger.Debugf("callFun3 %v , %v", chanIndex, primaryID)
if !isAsync {
r = <-chanParam.resultChan
globals.SugarLogger.Debugf("callFun4 %v , %v", chanIndex, primaryID)
close(chanParam.resultChan)
}
return r