Skip to content

Commit

Permalink
Use close instead of quit for disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ngan committed Mar 22, 2022
1 parent 3fd6452 commit b432c1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/big_rails/redis/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/big_rails/redis/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module BigRails
module Redis
VERSION = "0.4.0"
VERSION = "0.5.0"
end
end

0 comments on commit b432c1d

Please sign in to comment.