From 90dc6c8ce595a6e01c8c941a5c6c566d953af5c1 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 11 Jun 2020 14:09:19 +0800 Subject: [PATCH] DEV: Fix deprecation warning when using `Redis#close` with redis namespace. --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 9a5247df005..525bb799eb7 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -666,7 +666,7 @@ module Discourse Discourse.cache.reconnect Logster.store.redis.reconnect # shuts down all connections in the pool - Sidekiq.redis_pool.shutdown { |conn| conn.close } + Sidekiq.redis_pool.shutdown { |conn| conn.disconnect! } # re-establish Sidekiq.redis = sidekiq_redis_config