mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
change to easy-to-understand variable name queue
This commit is contained in:
parent
b76dfb9e05
commit
d16572bcdd
1 changed files with 3 additions and 3 deletions
|
@ -194,14 +194,14 @@ module Sidekiq
|
|||
[at, Sidekiq.dump_json(hash)]
|
||||
})
|
||||
else
|
||||
q = payloads.first["queue"]
|
||||
queue = payloads.first["queue"]
|
||||
now = Time.now.to_f
|
||||
to_push = payloads.map { |entry|
|
||||
entry["enqueued_at"] = now
|
||||
Sidekiq.dump_json(entry)
|
||||
}
|
||||
conn.sadd("queues", q)
|
||||
conn.lpush("queue:#{q}", to_push)
|
||||
conn.sadd("queues", queue)
|
||||
conn.lpush("queue:#{queue}", to_push)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue