about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlison Wheeler <tech@alisonwheeler.com>2023-04-02 05:49:37 +0100
committerGitHub <noreply@github.com>2023-04-02 06:49:37 +0200
commit2f7c3cb628ddf0438452325c52359f575aab6890 (patch)
tree536160085a46a62f17324c2d7956993d5a0708a7
parent2b113764117c9ab98875141bcf1758ba8be58173 (diff)
Update redis_config.rb to remove warning message (#24352)
-rw-r--r--lib/mastodon/redis_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/redis_config.rb b/lib/mastodon/redis_config.rb
index 3e97da873..2dbe76f83 100644
--- a/lib/mastodon/redis_config.rb
+++ b/lib/mastodon/redis_config.rb
@@ -35,7 +35,7 @@ REDIS_CACHE_PARAMS = {
   url: ENV['CACHE_REDIS_URL'],
   expires_in: 10.minutes,
   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,
   connect_timeout: 5,
 }.freeze