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