uses disque_nodes convention

This commit is contained in:
Ilan Steemers
2015-09-03 12:55:49 +02:00
parent e22980834c
commit b1f2143a3d
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -35,9 +35,9 @@ class Disque(Broker):
@staticmethod
def get_connection(list_key=Conf.PREFIX):
# randomize nodes
random.shuffle(Conf.DISQUE)
random.shuffle(Conf.DISQUE_NODES)
# find one that works
for node in Conf.DISQUE:
for node in Conf.DISQUE_NODES:
host, port = node.split(':')
redis_client = redis.Redis(host, int(port))
try: