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