DEV: Fix deprecation warning when using `Redis#close` with redis namespace.

This commit is contained in:
Guo Xiang Tan 2020-06-11 14:09:19 +08:00
parent 1411b095eb
commit 90dc6c8ce5
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 1 additions and 1 deletions

View File

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