mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Cast to float before string to ensure it's in double form, fixes #1200
This commit is contained in:
parent
a8c0e28bba
commit
7a4da5d67d
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ module Sidekiq
|
|||
|
||||
def schedule(timestamp, message)
|
||||
Sidekiq.redis do |conn|
|
||||
conn.zadd(@zset, timestamp.to_s, Sidekiq.dump_json(message))
|
||||
conn.zadd(@zset, timestamp.to_f.to_s, Sidekiq.dump_json(message))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue