Browse Source

Removes app.default_connection() (use app.connection_or_acquire())

Ask Solem 9 năm trước cách đây
mục cha
commit
781a81cf7e
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      celery/app/base.py

+ 0 - 1
celery/app/base.py

@@ -761,7 +761,6 @@ class Celery:
                 will be acquired from the connection pool.
         """
         return FallbackContext(connection, self._acquire_connection, pool=pool)
-    default_connection = connection_or_acquire  # XXX compat
 
     def producer_or_acquire(self, producer=None):
         """For use within a :keyword:`with` statement to get a producer