Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
queue: Switch non-batch consumer to also use start_json_consumer.
Alex Vandiverf0b23b0752eb
diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.pyindex 80aaf2de77b..68efe14f0a3 100644--- a/zerver/worker/queue_processors.py+++ b/zerver/worker/queue_processors.py@@ -340,8 +340,10 @@ class QueueProcessingWorker(ABC):def start(self) -> None:assert self.q is not Noneself.initialize_statistics()- self.q.register_json_consumer(self.queue_name, self.consume_single_event)- self.q.start_consuming()+ self.q.start_json_consumer(+ self.queue_name,+ lambda events: self.consume_single_event(events[0]),+ )def stop(self) -> None: # nocoverageassert self.q is not None