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