Skip to content

Commit

Permalink
fix: proper convert hash in args with priority in retry
Browse files Browse the repository at this point in the history
  • Loading branch information
artofhuman committed Jul 4, 2017
1 parent 77168c9 commit 0b3a1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/integration/unique.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def retry_identifier(*args)

return if args.empty?

args = [*args[0..-2], args.last.with_indifferent_access] if args.last.is_a?(Hash)
args = args.map { |i| i.is_a?(Hash) ? i.with_indifferent_access : i }

Digest::SHA1.hexdigest(obj_to_string(lock_on[*args]))
end
Expand Down

0 comments on commit 0b3a1f1

Please sign in to comment.