Permalink
Browse files

Purge the queue first

  • Loading branch information...
1 parent 05132d8 commit 944d42e368ed36978dcfa5f0ee79190f24bbe5e6 Michael Klishin committed Jan 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 examples/connection/automatic_recovery_with_basic_get.rb
@@ -14,6 +14,7 @@
ch = conn.create_channel
x = ch.topic("bunny.examples.recovery.topic", :durable => false)
q = ch.queue("bunny.examples.recovery.client_named_queue2", :durable => true)
+q.purge
q.bind(x, :routing_key => "abc").bind(x, :routing_key => "def")

0 comments on commit 944d42e

Please sign in to comment.