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:
commit
ffd3b92aa3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue