mirror of
https://github.com/deanpcmad/sidekiq-limit_fetch.git
synced 2022-11-09 13:54:36 -05:00
Use OpenSSL::Digest where possible
This commit is contained in:
parent
30015f74f8
commit
9bf29b2484
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue