Start ratelimit cleanup thread before expired hostnames cleanup thread
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user