1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-09-16 09:36:18 +02:00
This commit is contained in:
DarthSim
2023-11-13 20:36:10 +03:00
parent 949c71dbf1
commit be31a2e0f6

View File

@@ -208,8 +208,8 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
ctx := r.Context()
if queueSem != nil {
token, aquired := queueSem.TryAcquire()
if !aquired {
token, acquired := queueSem.TryAcquire()
if !acquired {
panic(ierrors.New(429, "Too many requests", "Too many requests"))
}
defer token.Release()