Skip to content

Commit

Permalink
Convert expiration time to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
dareddov committed Aug 24, 2018
1 parent 41ad4df commit 9c8e950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq_unique_jobs/timeout/calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def lock_expiration
@lock_expiration ||= begin
expiration = item[LOCK_EXPIRATION_KEY]
expiration ||= worker_options[LOCK_EXPIRATION_KEY]
expiration && expiration + time_until_scheduled
expiration && expiration.to_i + time_until_scheduled
end
end

Expand Down

0 comments on commit 9c8e950

Please sign in to comment.