mirror of https://github.com/Siphonay/mastodon
Fix cache store pool config deprecation warnings (#27551)
This commit is contained in:
parent
c926f5fd67
commit
fa65c8244f
|
@ -35,9 +35,11 @@ REDIS_CACHE_PARAMS = {
|
|||
url: ENV['CACHE_REDIS_URL'],
|
||||
expires_in: 10.minutes,
|
||||
namespace: cache_namespace,
|
||||
pool_size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
||||
pool_timeout: 5,
|
||||
connect_timeout: 5,
|
||||
pool: {
|
||||
size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
||||
timeout: 5,
|
||||
},
|
||||
}.freeze
|
||||
|
||||
REDIS_SIDEKIQ_PARAMS = {
|
||||
|
|
Loading…
Reference in New Issue