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, exchange=msg_id,
auto_delete=True, auto_delete=True,
exchange_type="direct", exchange_type="direct",
routing_key=msg_id, routing_key=msg_id)
durable=False)
consumer.register_callback(generic_response) consumer.register_callback(generic_response)
publisher = messaging.Publisher(connection=Connection.instance(), publisher = messaging.Publisher(connection=Connection.instance(),
exchange=FLAGS.control_exchange, exchange=FLAGS.control_exchange,
durable=False,
exchange_type="topic", exchange_type="topic",
routing_key=topic) routing_key=topic)
publisher.send(message) publisher.send(message)