mirror of https://github.com/celery/kombu.git
Allow connection pools with no limit
This commit is contained in:
parent
c86ced6746
commit
a574515aa9
|
@ -474,6 +474,7 @@ class ConnectionPool(Resource):
|
|||
return copy(self.connection)
|
||||
|
||||
def setup(self):
|
||||
if self.limit:
|
||||
for i in xrange(self.limit):
|
||||
conn = self.new()
|
||||
if i < self.preload:
|
||||
|
|
Loading…
Reference in New Issue