1
This commit is contained in:
parent
94e634fd9b
commit
ad5f04c6d9
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user