mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Update sidekiq to version 7 (#34745)
This commit is contained in:
@@ -9,7 +9,6 @@ class Mastodon::RedisConfiguration
|
||||
|
||||
def base
|
||||
@base ||= setup_config(prefix: nil, defaults: DEFAULTS)
|
||||
.merge(namespace: nil)
|
||||
end
|
||||
|
||||
def sidekiq
|
||||
@@ -23,7 +22,7 @@ class Mastodon::RedisConfiguration
|
||||
expires_in: 10.minutes,
|
||||
connect_timeout: 5,
|
||||
pool: {
|
||||
size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
||||
size: Sidekiq.server? ? Sidekiq.default_configuration[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
|
||||
timeout: 5,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user