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:
Chris Behrens
2011-08-30 20:53:27 -07:00
parent d441093814
commit 49716b9e0f

View File

@@ -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