refactor(playout): add more typings
This commit is contained in:
parent
a32d9d25f1
commit
719464a272
10 changed files with 54 additions and 44 deletions
|
@ -34,7 +34,7 @@ class MessageHandler(ConsumerMixin):
|
|||
Consumer(queues, callbacks=[self.on_message], accept=["text/plain"]),
|
||||
]
|
||||
|
||||
def on_message(self, body, message: Message):
|
||||
def on_message(self, body, message: Message) -> None:
|
||||
logger.debug("received message: %s", body)
|
||||
try:
|
||||
try:
|
||||
|
@ -76,7 +76,7 @@ class MessageListener:
|
|||
self.config = config
|
||||
self.fetch_queue = fetch_queue
|
||||
|
||||
def run_forever(self):
|
||||
def run_forever(self) -> None:
|
||||
while True:
|
||||
with Connection(
|
||||
self.config.rabbitmq.url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue