Permalink
Browse files

Merge pull request #51 from gthiruva/patch-1

Patch to the simple_consumer.rb example.
  • Loading branch information...
2 parents af6d5e3 + 9415eeb commit 00384afab9758d9ba4d6a69557d632b27dd99f0d @michaelklishin michaelklishin committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/simple_consumer.rb
@@ -48,7 +48,7 @@
# subscribe to queue
q.subscribe(:consumer_tag => 'testtag1', :timeout => 30) do |msg|
- puts "#{q.subscription.message_count}: #{msg[:payload]}"
+ puts "#{q.default_consumer.message_count}: #{msg[:payload]}"
end
# Close client

0 comments on commit 00384af

Please sign in to comment.