mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
DEV: Fix deprecation warning when using Redis#close
with redis namespace.
This commit is contained in:
parent
1411b095eb
commit
90dc6c8ce5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user