Use OpenSSL::Digest where possible
This commit is contained in:
parent
30015f74f8
commit
9bf29b2484
|
@ -34,11 +34,11 @@ module Sidekiq::LimitFetch::Global
|
|||
end
|
||||
|
||||
def redis_acquire_sha
|
||||
@acquire_sha ||= Digest::SHA1.hexdigest redis_acquire_script
|
||||
@acquire_sha ||= OpenSSL::Digest::SHA1.hexdigest redis_acquire_script
|
||||
end
|
||||
|
||||
def redis_release_sha
|
||||
@release_sha ||= Digest::SHA1.hexdigest redis_release_script
|
||||
@release_sha ||= OpenSSL::Digest::SHA1.hexdigest redis_release_script
|
||||
end
|
||||
|
||||
def redis_acquire_script
|
||||
|
|
Loading…
Reference in New Issue