From 2c4a1912e8789b21f890c41d88ea1b6cad17ab07 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 8 Oct 2013 18:35:58 -0400 Subject: [PATCH] Fix parameters for on_close callback Some of the older documentation was apparently wrong. (imported from commit 9ebf9d1a72c8b230563f1883d63c26212eb80e22) --- zerver/lib/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/queue.py b/zerver/lib/queue.py index bfcc1bec20..a4da11a564 100644 --- a/zerver/lib/queue.py +++ b/zerver/lib/queue.py @@ -181,7 +181,7 @@ class TornadoQueueClient(SimpleQueueClient): self._reconnect_consumer_callbacks() self.log.info('TornadoQueueClient connected') - def _on_connection_closed(self, method_frame): + def _on_connection_closed(self, connection, reply_code, reply_text): self.log.warning("TornadoQueueClient lost connection to RabbitMQ, reconnecting...") from tornado import ioloop