forked from mirrors/catstodon
Fix cache store pool config deprecation warnings (#27551)
This commit is contained in:
parent
c926f5fd67
commit
fa65c8244f
1 changed files with 4 additions and 2 deletions
|
@ -35,9 +35,11 @@ REDIS_CACHE_PARAMS = {
|
||||||
url: ENV['CACHE_REDIS_URL'],
|
url: ENV['CACHE_REDIS_URL'],
|
||||||
expires_in: 10.minutes,
|
expires_in: 10.minutes,
|
||||||
namespace: cache_namespace,
|
namespace: cache_namespace,
|
||||||
pool_size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
|
||||||
pool_timeout: 5,
|
|
||||||
connect_timeout: 5,
|
connect_timeout: 5,
|
||||||
|
pool: {
|
||||||
|
size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
||||||
|
timeout: 5,
|
||||||
|
},
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
REDIS_SIDEKIQ_PARAMS = {
|
REDIS_SIDEKIQ_PARAMS = {
|
||||||
|
|
Loading…
Reference in a new issue