Explorar el Código

Use the Connection.qos_semantics_matches_spec property instead

Ask Solem hace 11 años
padre
commit
71e59c2fce
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      celery/worker/consumer.py

+ 1 - 3
celery/worker/consumer.py

@@ -596,9 +596,7 @@ class Tasks(bootsteps.StartStopStep):
         # - RabbitMQ 3.3 completely redefines how basic_qos works..
         # This will detect if the new qos smenatics is in effect,
         # and if so make sure the 'apply_global' flag is set on qos updates.
-        qos_global = not (
-            c.connection.transport.qos_semantics_matches_spec(
-                c.connection.connection))
+        qos_global = not c.connection.qos_semantics_matches_spec
 
         # set initial prefetch count
         c.connection.default_channel.basic_qos(