Start ratelimit cleanup thread before expired hostnames cleanup thread

This commit is contained in:
2026-01-23 01:43:58 +01:00
parent 1fd14ebbed
commit 65760b1d96

View File

@@ -434,11 +434,12 @@ def run_daemon(app):
proto = "http" proto = "http"
# Start cleanup threads # Start cleanup threads
ratelimit_cleanup_thread = RateLimitCleanupThread(app)
ratelimit_cleanup_thread.start()
expired_cleanup_thread = ExpiredRecordsCleanupThread(app) expired_cleanup_thread = ExpiredRecordsCleanupThread(app)
expired_cleanup_thread.start() expired_cleanup_thread.start()
ratelimit_cleanup_thread = RateLimitCleanupThread(app)
ratelimit_cleanup_thread.start()
# Setup signal handlers # Setup signal handlers
def signal_handler(signum, frame): def signal_handler(signum, frame):