DEV: Avoid reaching for `Redis#_client` which is considered deprecated.

This commit is contained in:
Guo Xiang Tan 2020-06-02 11:46:55 +08:00
parent fe9c82994d
commit e4cd4f7e0b
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 2 deletions

View File

@ -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