mirror of https://github.com/zulip/zulip.git
mypy: Set type of rabbitmq_heartbeat to Optional[int] in queue.py.
This commit is contained in:
parent
07255d49d5
commit
32269ad142
|
@ -29,7 +29,7 @@ class SimpleQueueClient(object):
|
|||
self.channel = None # type: Optional[BlockingChannel]
|
||||
self.consumers = defaultdict(set) # type: Dict[str, Set[Consumer]]
|
||||
# Disable RabbitMQ heartbeats since BlockingConnection can't process them
|
||||
self.rabbitmq_heartbeat = 0
|
||||
self.rabbitmq_heartbeat = 0 # type: Optional[int]
|
||||
self._connect()
|
||||
|
||||
def _connect(self):
|
||||
|
|
Loading…
Reference in New Issue