Explorar o código

MongoDB: Fixes typo use_greenlet -> use_greenlets

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
38f424d46f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/backends/mongodb.py

+ 1 - 1
celery/backends/mongodb.py

@@ -119,7 +119,7 @@ class MongoBackend(BaseBackend):
             if url == 'mongodb://':
                 url = url + 'localhost'
             if detect_environment() != 'default':
-                self.options['use_greenlet'] = True
+                self.options['use_greenlets'] = True
             self._connection = MongoClient(host=url, **self.options)
 
         return self._connection