From d2aae7d958cf60835965c459fce6030527ea4cef Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 23 Jun 2010 07:24:44 +0200 Subject: [PATCH] rename rabbitmq routing --- pandora/backend/daemon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora/backend/daemon.py b/pandora/backend/daemon.py index 1bc60f0..551724e 100644 --- a/pandora/backend/daemon.py +++ b/pandora/backend/daemon.py @@ -7,17 +7,17 @@ import models def send_bg_message(msg): conn = DjangoBrokerConnection() - publisher = Publisher(connection=conn, exchange="oxdb-bg", - routing_key="oxdb-bg") + publisher = Publisher(connection=conn, exchange="pandora-bg", + routing_key="pandora-bg") publisher.send(msg) publisher.close() def run(): conn = DjangoBrokerConnection() - consumer = Consumer(connection=conn, queue="oxdb-bg", - exchange="oxdb-bg", - routing_key="oxdb-bg") + consumer = Consumer(connection=conn, queue="pandora-bg", + exchange="pandora-bg", + routing_key="pandora-bg") def handle_background_tasks_callback(data, message): print("Got bg message") print data