lib/cotton_tail/queue/bunny.rb in cotton-tail-0.2.0 vs lib/cotton_tail/queue/bunny.rb in cotton-tail-0.2.1
- old
+ new
@@ -32,16 +32,16 @@
def pop
delivery_info, *tail = super
[delivery_info[:routing_key], delivery_info, *tail]
end
- private
-
- def_delegator :'CottonTail.configuration', :connection_args
-
def bind(routing_key)
source.bind('amq.topic', routing_key: routing_key)
end
+
+ private
+
+ def_delegator :'CottonTail.configuration', :connection_args
def watch_source(manual_ack)
source.subscribe(manual_ack: manual_ack) { |*args| self << args }
end