Skip to content

Commit

Permalink
Remove hiredis dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-gomez committed Nov 16, 2023
1 parent a00b001 commit 5fe5b60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ PATH
specs:
simple_redlock (0.1.0)
connection_pool (~> 2.2.5)
hiredis (~> 0.6.3)
redis (~> 4.6.0)

GEM
remote: https://rubygems.org/
specs:
connection_pool (2.2.5)
diff-lcs (1.5.0)
hiredis (0.6.3)
rake (13.0.6)
redis (4.6.0)
rspec (3.11.0)
Expand Down
3 changes: 1 addition & 2 deletions lib/simple_redlock.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'connection_pool'
require 'redis'
require 'redis/connection/hiredis'

require_relative 'simple_redlock/locker'
require_relative 'simple_redlock/lockable'
Expand Down Expand Up @@ -40,7 +39,7 @@ def self.redis_pool=(redis_pool)

def self.redis_pool
@redis_pool ||= ConnectionPool.new(timeout: redis_pool_timeout, size: redis_pool_size) do
Redis.new(url: redis_url, driver: :hiredis)
Redis.new(url: redis_url)
end
end

Expand Down
1 change: 0 additions & 1 deletion simple_redlock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'redis', '~> 4.6.0'
spec.add_dependency 'hiredis', '~> 0.6.3'
spec.add_dependency 'connection_pool', '~> 2.2.5'

spec.add_development_dependency 'rake', '~> 13.0'
Expand Down

0 comments on commit 5fe5b60

Please sign in to comment.