tornado: Fix GC of old queues.

This commit is contained in:
Alex Vandiver 2024-02-21 00:44:27 -05:00 committed by Tim Abbott
parent b747ea285f
commit 7e9d8cd192
1 changed files with 4 additions and 2 deletions

View File

@ -549,7 +549,9 @@ def do_gc_event_queues(
def gc_event_queues(port: int) -> None:
start = time.perf_counter()
# We cannot use perf_counter here, since we store and compare UNIX
# timestamps to it in the queues.
start = time.time()
to_remove: Set[str] = set()
affected_users: Set[int] = set()
affected_realms: Set[int] = set()
@ -571,7 +573,7 @@ def gc_event_queues(port: int) -> None:
port,
len(to_remove),
len(affected_users),
time.perf_counter() - start,
time.time() - start,
len(clients),
handler_stats_string(),
)