examples/simple_consumer_09.rb in bunny-0.6.3.rc2 vs examples/simple_consumer_09.rb in bunny-0.7

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + # simple_consumer_09.rb # N.B. To be used in conjunction with simple_publisher.rb # Assumes that target message broker/server has a user called 'guest' with a password 'guest' @@ -44,10 +46,10 @@ # bind queue to exchange q.bind(exch, :key => 'fred') # subscribe to queue q.subscribe(:consumer_tag => 'testtag1', :timeout => 30) do |msg| - puts "#{q.subscription.message_count}: #{msg[:payload]}" + puts "#{q.subscription.message_count}: #{msg[:payload]}" end # Close client -b.stop \ No newline at end of file +b.stop