From e4cd4f7e0be9fec5d0e939f49da5f4e756ea7afa Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 2 Jun 2020 11:46:55 +0800 Subject: [PATCH] DEV: Avoid reaching for `Redis#_client` which is considered deprecated. --- config/unicorn.conf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index 268edb66c9..71831433dd 100644 --- a/config/unicorn.conf.rb +++ b/config/unicorn.conf.rb @@ -162,7 +162,7 @@ before_fork do |server, worker| sleep 10 force_kill_rogue_sidekiq end - Discourse.redis._client.disconnect + Discourse.redis.close end end @@ -177,7 +177,7 @@ before_fork do |server, worker| end - Discourse.redis._client.disconnect + Discourse.redis.close # Throttle the master from forking too quickly by sleeping. Due # to the implementation of standard Unix signal handlers, this