Skip to content

Commit a109bb9

Browse files
committed
don't special case on Redis::Namespace.
We should not have conditionals based on whether or not we're using Redis::Namespace. Always treat the connection like a normal connection (Redis::Namespace should be transparent).
1 parent 147e448 commit a109bb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/resque/multi_queue.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ def initialize(queues, redis = Resque.redis)
1919
@redis = redis
2020

2121
queues.each do |queue|
22-
key = @redis.is_a?(Redis::Namespace) ? "#{@redis.namespace}:" : ""
23-
key += queue.redis_name
24-
@queue_hash[key] = queue
22+
@queue_hash[queue.redis_name] = queue
2523
end
2624
end
2725

0 commit comments

Comments
 (0)