mirror of https://github.com/zulip/zulip.git
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:
parent
d77c70220c
commit
fe2c352ac0
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue