diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index bdd38c88..f366e133 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,18 +1,8 @@ # frozen_string_literal: true -sidekiq_config = { +Sidekiq.default_configuration.redis = { url: ENV["REDIS_URL"], - ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE} + ssl_params: { + verify_mode: OpenSSL::SSL::VERIFY_NONE + } } - -Sidekiq.configure_server do |config| - config.redis = sidekiq_config -end - -Sidekiq.configure_client do |config| - config.redis = sidekiq_config -end - -if Sidekiq.server? - Rails.application.config.active_record.warn_on_records_fetched_greater_than = 1500 -end