Jeremy Zheng 9 месяцев назад
Родитель
Сommit
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)