From fe2c352ac0bc114c064274864812083401269385 Mon Sep 17 00:00:00 2001 From: Conrad Dean Date: Sun, 5 Jun 2016 16:35:27 -0400 Subject: [PATCH] ClientDescriptor: Pass inline sets, not lists, to do_gc_event_queues. This allows us to more precisely type do_gc_event_queues. --- zerver/lib/event_queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/event_queue.py b/zerver/lib/event_queue.py index 944dd123e3..b8bfd18445 100644 --- a/zerver/lib/event_queue.py +++ b/zerver/lib/event_queue.py @@ -192,8 +192,8 @@ class ClientDescriptor(object): # invariant that event queues are idle when passed to # `do_gc_event_queues` is preserved. self.finish_current_handler(need_timeout=False) - do_gc_event_queues([self.event_queue.id], [self.user_profile_id], - [self.realm_id]) + do_gc_event_queues({self.event_queue.id}, {self.user_profile_id}, + {self.realm_id}) descriptors_by_handler_id = {} # type: Dict[int, ClientDescriptor]