Skip to content

Commit

Permalink
Fix cache store pool config deprecation warnings (mastodon#27551)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Oct 25, 2023
1 parent c926f5f commit fa65c82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mastodon/redis_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ def setup_redis_env_url(prefix = nil, defaults = true)
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 = {
Expand Down

0 comments on commit fa65c82

Please sign in to comment.