Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
queue: Only set QOS on a newly-opened channel, once.
Alex Vandiveraa032bf62c2e
diff --git a/zerver/lib/queue.py b/zerver/lib/queue.pyindex b7b469b4fff..8d2d691a7e2 100644--- a/zerver/lib/queue.py+++ b/zerver/lib/queue.py@@ -160,9 +160,10 @@ class SimpleQueueClient(QueueClient[BlockingChannel]):the callback with no arguments."""if self.connection is None or not self.connection.is_open:self._connect()-- assert self.channel is not None- self.channel.basic_qos(prefetch_count=self.prefetch)+ assert self.channel is not None+ self.channel.basic_qos(prefetch_count=self.prefetch)+ else:+ assert self.channel is not Noneif queue_name not in self.queues:self.channel.queue_declare(queue=queue_name, durable=True)