1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge branch 'master' of github.com:mperham/sidekiq

This commit is contained in:
Mike Perham 2012-03-18 19:20:16 -07:00
commit ffd3b92aa3

View file

@ -63,7 +63,7 @@ module Sidekiq
def retries
Sidekiq.redis do |conn|
results = conn.zrange('retry', 0, 25, :withscores => true)
results.each_slice(2).to_a.map { |x| [MultiJson.decode(x[0]), Float(x[1])] }
results.each_slice(2).map { |msg, score| [MultiJson.decode(msg), Float(score)] }
end
end