1
0

feat: add delay for new limit

This commit is contained in:
dump_stack() 2023-05-26 13:10:54 +00:00
parent 1b87946130
commit 92f95d8658
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -30,6 +30,7 @@ func lowerLimit() {
time.Now().Add(limiterUpdateDelay), time.Now().Add(limiterUpdateDelay),
rate.Every(limiterTimeout), rate.Every(limiterTimeout),
) )
time.Sleep(limiterUpdateDelay)
} }
// Retries in case of 5xx errors // Retries in case of 5xx errors