use kombu.connection.BrokerConnection vs kombu.connection.Connection so that older versions of kombu (1.0.4) work as well as newer.
This commit is contained in:
@@ -322,7 +322,7 @@ class Connection(object):
|
||||
except self.connection.connection_errors:
|
||||
pass
|
||||
time.sleep(1)
|
||||
self.connection = kombu.connection.Connection(**self.params)
|
||||
self.connection = kombu.connection.BrokerConnection(**self.params)
|
||||
if FLAGS.fake_rabbit:
|
||||
# Kludge to speed up tests.
|
||||
self.connection.transport.polling_interval = 0.0
|
||||
|
||||
Reference in New Issue
Block a user