mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
requirements: Upgrade to Tornado 6.
Fixes #8913.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 7acb642fa5)
This commit is contained in:
committed by
Tim Abbott
parent
9362158e04
commit
e124464fea
@@ -302,7 +302,7 @@ class TornadoQueueClient(QueueClient[Channel]):
|
||||
"TornadoQueueClient couldn't connect to RabbitMQ, retrying in %d secs...",
|
||||
retry_secs,
|
||||
)
|
||||
ioloop.IOLoop.instance().call_later(retry_secs, self._reconnect)
|
||||
ioloop.IOLoop.current().call_later(retry_secs, self._reconnect)
|
||||
|
||||
def _on_connection_closed(
|
||||
self, connection: pika.connection.Connection, reason: Exception
|
||||
@@ -315,7 +315,7 @@ class TornadoQueueClient(QueueClient[Channel]):
|
||||
"TornadoQueueClient lost connection to RabbitMQ, reconnecting in %d secs...",
|
||||
retry_secs,
|
||||
)
|
||||
ioloop.IOLoop.instance().call_later(retry_secs, self._reconnect)
|
||||
ioloop.IOLoop.current().call_later(retry_secs, self._reconnect)
|
||||
|
||||
def _on_open(self, connection: pika.connection.Connection) -> None:
|
||||
assert self.connection is not None
|
||||
|
||||
Reference in New Issue
Block a user