浏览代码

:bug: fix consumer timeout

Jeremy Zheng 1 年之前
父节点
当前提交
4a87518c31
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ai-translate/ai_translate/__init__.py

+ 1 - 1
ai-translate/ai_translate/__init__.py

@@ -37,7 +37,7 @@ def start_consumer(context, name, config, queue, callback):
         handle_message(context, ch, method, properties.message_id,
                        properties.content_type, json.loads(
                            body, object_hook=SimpleNamespace),
-                       callback, ['customer-timeout'])
+                       callback, config['customer-timeout'])
 
     channel.basic_consume(
         queue=queue, on_message_callback=_callback, auto_ack=False)