This commit is contained in:
yangduo 2024-09-02 12:03:31 +08:00
parent 94e634fd9b
commit ad5f04c6d9

View File

@ -36,7 +36,6 @@ func CaForward(c *gin.Context) {
}
if needlimit {
f5.GetSysLog().Debug("need limit check")
cLock := service.SApiForward.AcquireLock(accountId)
if cLock == nil {
f5.RspErr(c, 500, "system busy")
@ -44,12 +43,10 @@ func CaForward(c *gin.Context) {
return
}
defer func() {
f5.GetSysLog().Debug("need limit defer call")
service.SApiForward.ReleaseLock(cLock)
}()
} else {
f5.GetSysLog().Debug("no need limit check")
}
service.SApiForward.IncTotalTimes()
beginTick := q5.GetTickCount()
defer func() {