Permalink
Browse files

fixed saving opts in the queue to address http://groups.google.com/gr…

  • Loading branch information...
1 parent d701665 commit 887c6b650f39d5b8aa518c9a97e07f40253f6517 Amos Elliston committed Dec 10, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/amqp/queue.rb
View
@@ -7,7 +7,8 @@ def initialize(carrot, name, opts = {})
@opts = opts
@name = name
@carrot = carrot
- @opts[:name] = name
+
+ @opts[:queue] = name
server.send_frame(
Protocol::Queue::Declare.new(@opts.merge(:nowait => true))
)

0 comments on commit 887c6b6

Please sign in to comment.