Skip to content

Commit

Permalink
fix: Sidekiq 7.2 TypeError: invalid type TrueClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnesthesia committed Nov 1, 2023
1 parent 36ffe8f commit 8deffa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq_unique_jobs/orphans/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def enabled?
# @return [void]
#
def register_reaper_process
redis { |conn| conn.set(UNIQUE_REAPER, current_timestamp, nx: true, ex: drift_reaper_interval) }
redis { |conn| conn.set(UNIQUE_REAPER, current_timestamp, "nx", "ex", drift_reaper_interval) }
end

#
Expand All @@ -202,7 +202,7 @@ def register_reaper_process
# @return [void]
#
def refresh_reaper_mutex
redis { |conn| conn.set(UNIQUE_REAPER, current_timestamp, ex: drift_reaper_interval) }
redis { |conn| conn.set(UNIQUE_REAPER, current_timestamp, "ex", drift_reaper_interval) }
end

#
Expand Down

0 comments on commit 8deffa8

Please sign in to comment.