Skip to content

Commit

Permalink
Update Resque.redis_id so resque-web can handle being used in a distr…
Browse files Browse the repository at this point in the history
…ibuted ring.
  • Loading branch information
mpd committed Jun 4, 2011
1 parent 157926e commit 4923bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/resque.rb
Expand Up @@ -63,6 +63,8 @@ def redis_id
# support 1.x versions of redis-rb
if redis.respond_to?(:server)
redis.server
elsif redis.respond_to?(:nodes) # distributed
redis.nodes.map { |n| n.id }.join(', ')
else
redis.client.id
end
Expand Down

0 comments on commit 4923bc4

Please sign in to comment.