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