Skip to content

Commit

Permalink
check for symbol keys on strategy hash (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfgs authored Feb 21, 2022
1 parent 4a03d41 commit 17e2ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq_unique_jobs/lock_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ def errors_as_string

# the strategy to use as conflict resolution from sidekiq client
def on_client_conflict
@on_client_conflict ||= on_conflict["client"] if on_conflict.is_a?(Hash)
@on_client_conflict ||= on_conflict["client"] || on_conflict[:client] if on_conflict.is_a?(Hash)
@on_client_conflict ||= on_conflict
end

# the strategy to use as conflict resolution from sidekiq server
def on_server_conflict
@on_server_conflict ||= on_conflict["server"] if on_conflict.is_a?(Hash)
@on_server_conflict ||= on_conflict["server"] || on_conflict[:server] if on_conflict.is_a?(Hash)
@on_server_conflict ||= on_conflict
end
end
Expand Down

0 comments on commit 17e2ccc

Please sign in to comment.