From b432c1d15a6e66e8e47b69a984865a5eb17a6de9 Mon Sep 17 00:00:00 2001 From: Ngan Pham Date: Tue, 22 Mar 2022 11:31:46 -0700 Subject: [PATCH] Use close instead of quit for disconnect --- lib/big_rails/redis/registry.rb | 4 ++-- lib/big_rails/redis/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/big_rails/redis/registry.rb b/lib/big_rails/redis/registry.rb index 76cdd55..174cc2a 100644 --- a/lib/big_rails/redis/registry.rb +++ b/lib/big_rails/redis/registry.rb @@ -42,9 +42,9 @@ def each(&block) def disconnect each do |connection| if connection.is_a?(::ConnectionPool) - connection.reload { |conn| conn.quit } + connection.reload { |conn| conn.close } else - connection.quit + connection.close end end end diff --git a/lib/big_rails/redis/version.rb b/lib/big_rails/redis/version.rb index 593a97c..19eee0e 100644 --- a/lib/big_rails/redis/version.rb +++ b/lib/big_rails/redis/version.rb @@ -2,6 +2,6 @@ module BigRails module Redis - VERSION = "0.4.0" + VERSION = "0.5.0" end end