mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
runtornado: Switch to asyncio event loop.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 6fd1a558b7)
This commit is contained in:
committed by
Tim Abbott
parent
b4a0684201
commit
0ccc706f7a
@@ -307,6 +307,8 @@ class TornadoQueueClient(QueueClient[Channel]):
|
||||
def _on_connection_closed(
|
||||
self, connection: pika.connection.Connection, reason: Exception
|
||||
) -> None:
|
||||
if self.connection is None:
|
||||
return
|
||||
self._connection_failure_count = 1
|
||||
retry_secs = self.CONNECTION_RETRY_SECS
|
||||
self.log.warning(
|
||||
@@ -335,6 +337,7 @@ class TornadoQueueClient(QueueClient[Channel]):
|
||||
def close(self) -> None:
|
||||
if self.connection is not None:
|
||||
self.connection.close()
|
||||
self.connection = None
|
||||
|
||||
def ensure_queue(self, queue_name: str, callback: Callable[[Channel], object]) -> None:
|
||||
def set_qos(frame: Any) -> None:
|
||||
|
||||
Reference in New Issue
Block a user