mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08:00
DEV: Avoid reaching for Redis#_client
which is considered deprecated.
This commit is contained in:
parent
fe9c82994d
commit
e4cd4f7e0b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user