mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
send_event: Remove useless return value and annotate.
Detected by mypy. [tweaked by tabbott to pass mypy check and remove annotations]
This commit is contained in:
@@ -94,12 +94,12 @@ class SimpleQueueClient(object):
|
||||
|
||||
def json_publish(self, queue_name, body):
|
||||
try:
|
||||
return self.publish(queue_name, ujson.dumps(body))
|
||||
self.publish(queue_name, ujson.dumps(body))
|
||||
except (AttributeError, pika.exceptions.AMQPConnectionError):
|
||||
self.log.warning("Failed to send to rabbitmq, trying to reconnect and send again")
|
||||
self._reconnect()
|
||||
|
||||
return self.publish(queue_name, ujson.dumps(body))
|
||||
self.publish(queue_name, ujson.dumps(body))
|
||||
|
||||
def register_consumer(self, queue_name, consumer):
|
||||
def wrapped_consumer(ch, method, properties, body):
|
||||
|
||||
Reference in New Issue
Block a user