From fa65c8244f9390757767cff19b87950c54a4cb50 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 25 Oct 2023 14:01:21 +0200 Subject: [PATCH] Fix cache store pool config deprecation warnings (#27551) --- lib/mastodon/redis_config.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mastodon/redis_config.rb b/lib/mastodon/redis_config.rb index 2dbe76f83c..e885712f89 100644 --- a/lib/mastodon/redis_config.rb +++ b/lib/mastodon/redis_config.rb @@ -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 = {