Commit 08c09001 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Backport kwargs fix for Ruby 3

Make the code compatible both with Ruby 2.7 and Ruby 3.
parent a55c2106
......@@ -38,11 +38,11 @@ Sidekiq.configure_server do |config|
config.redis = queues_config_hash
config.server_middleware(&Gitlab::SidekiqMiddleware.server_configurator({
config.server_middleware(&Gitlab::SidekiqMiddleware.server_configurator(
metrics: Settings.monitoring.sidekiq_exporter,
arguments_logger: SidekiqLogArguments.enabled? && !enable_json_logs,
memory_killer: enable_sidekiq_memory_killer && use_sidekiq_legacy_memory_killer
}))
))
config.client_middleware(&Gitlab::SidekiqMiddleware.client_configurator)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment