소스 검색

:bug: fix consumer timeout

Jeremy Zheng 9 달 전
부모
커밋
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)