From 2becbf6ae901b1c7aecebe95087fd308fc611627 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 11 Jun 2008 21:31:12 +0000 Subject: replaced example usages of message_flow with the start() method git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@666850 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/examples/fanout/fanout_consumer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qpid/python/examples/fanout/fanout_consumer.py') diff --git a/qpid/python/examples/fanout/fanout_consumer.py b/qpid/python/examples/fanout/fanout_consumer.py index 4a0e8ef488..a2b1b30141 100755 --- a/qpid/python/examples/fanout/fanout_consumer.py +++ b/qpid/python/examples/fanout/fanout_consumer.py @@ -51,12 +51,11 @@ session.exchange_bind(queue=server_queue_name, exchange="amq.fanout") local_queue_name = "local_queue" local_queue = session.incoming(local_queue_name) -# Call message_consume() to tell the server to deliver messages +# Call message_subscribe() to tell the server to deliver messages # from the AMQP queue to this local client queue. session.message_subscribe(queue=server_queue_name, destination=local_queue_name) -session.message_flow(local_queue_name, session.credit_unit.message, 0xFFFFFFFF) -session.message_flow(local_queue_name, session.credit_unit.byte, 0xFFFFFFFF) +local_queue.start() print "Subscribed to queue " + server_queue_name sys.stdout.flush() -- cgit v1.2.1