ClientDescriptor: Pass inline sets, not lists, to do_gc_event_queues.

This allows us to more precisely type do_gc_event_queues.
This commit is contained in:
Conrad Dean 2016-06-05 16:35:27 -04:00 committed by Tim Abbott
parent d77c70220c
commit fe2c352ac0
1 changed files with 2 additions and 2 deletions

View File

@ -192,8 +192,8 @@ class ClientDescriptor(object):
# invariant that event queues are idle when passed to # invariant that event queues are idle when passed to
# `do_gc_event_queues` is preserved. # `do_gc_event_queues` is preserved.
self.finish_current_handler(need_timeout=False) self.finish_current_handler(need_timeout=False)
do_gc_event_queues([self.event_queue.id], [self.user_profile_id], do_gc_event_queues({self.event_queue.id}, {self.user_profile_id},
[self.realm_id]) {self.realm_id})
descriptors_by_handler_id = {} # type: Dict[int, ClientDescriptor] descriptors_by_handler_id = {} # type: Dict[int, ClientDescriptor]