Browse Source

Use BrokerConnection.connect() instead of .connection property.

Ask Solem 15 năm trước cách đây
mục cha
commit
f81e26aa85
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/worker/listener.py

+ 1 - 1
celery/worker/listener.py

@@ -217,7 +217,7 @@ class CarrotListener(object):
         def _establish_connection():
             """Establish a connection to the AMQP broker."""
             conn = establish_connection()
-            conn.connection # Connection is established lazily, so connect.
+            conn.connect() # Connection is established lazily, so connect.
             return conn
 
         if not conf.BROKER_CONNECTION_RETRY: