redis_config.rb: Move away deprecated Sidekiq config syntax

This commit is contained in:
Jeremy Kescher 2023-01-06 00:17:36 +01:00
parent 39fc57edac
commit f862d584a7
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

View file

@ -35,7 +35,7 @@ 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.options[:concurrency] : Integer(ENV['MAX_THREADS'] || 5), pool_size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
pool_timeout: 5, pool_timeout: 5,
connect_timeout: 5, connect_timeout: 5,
}.freeze }.freeze