Refactor rate limiter and datetime formatting
This commit is contained in:
@@ -135,8 +135,10 @@ class RateLimitCleanupThread(threading.Thread):
|
||||
|
||||
while not self.stop_event.wait(self.interval):
|
||||
try:
|
||||
if self.app.rate_limiter:
|
||||
self.app.rate_limiter.cleanup()
|
||||
if self.app.good_limiter:
|
||||
self.app.good_limiter.cleanup()
|
||||
if self.app.bad_limiter:
|
||||
self.app.bad_limiter.cleanup()
|
||||
except Exception as e:
|
||||
logging.error(f"Rate limit cleanup error: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user