fix rpc command line call, remove useless deferreds

This commit is contained in:
Vishvananda Ishaya
2010-08-04 16:51:48 -07:00
parent cdfc317608
commit 69d3bcfba4

View File

@@ -238,12 +238,12 @@ def send_message(topic, message, wait=True):
exchange=msg_id,
auto_delete=True,
exchange_type="direct",
routing_key=msg_id,
durable=False)
routing_key=msg_id)
consumer.register_callback(generic_response)
publisher = messaging.Publisher(connection=Connection.instance(),
exchange=FLAGS.control_exchange,
durable=False,
exchange_type="topic",
routing_key=topic)
publisher.send(message)