Refactor rate limiter and datetime formatting

This commit is contained in:
2026-01-22 02:24:03 +01:00
parent f297a8d740
commit 04114ab659
8 changed files with 133 additions and 135 deletions

View File

@@ -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}")