We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ddf929a + e5955eb commit 40db4fbCopy full SHA for 40db4fb
lib/sneakers/queue.rb
@@ -39,7 +39,8 @@ def subscribe(worker)
39
40
queue = @channel.queue(@name, **@opts[:queue_options])
41
42
- if exchange_name.length > 0
+ should_bind = @opts.fetch(:bind, true)
43
+ if should_bind && exchange_name.length > 0
44
routing_keys.each do |key|
45
if @opts[:bind_arguments]
46
queue.bind(@exchange, routing_key: key, arguments: @opts[:bind_arguments])
0 commit comments