diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-09 10:41:28 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-05-09 10:41:28 +0200 |
commit | 87c3a0d0b3dfd7e3ea818156de38497e6257e78f (patch) | |
tree | c816a9156bc7f8ca56fa041ba6dbfcc10e0ca97e /config/initializers | |
parent | 5233e9910677c921ab93e0997964144b1df95a63 (diff) | |
parent | 9b18914c3572be5b661e4d8e31578fae4ee347be (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/sidekiq.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index fc85a3913..219554df4 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,14 +1,7 @@ # frozen_string_literal: true -namespace = ENV.fetch('REDIS_NAMESPACE') { nil } -redis_params = { url: ENV['REDIS_URL'], driver: :hiredis } - -if namespace - redis_params[:namespace] = namespace -end - Sidekiq.configure_server do |config| - config.redis = redis_params + config.redis = REDIS_SIDEKIQ_PARAMS config.server_middleware do |chain| chain.add SidekiqErrorHandler @@ -26,7 +19,7 @@ Sidekiq.configure_server do |config| end Sidekiq.configure_client do |config| - config.redis = redis_params + config.redis = REDIS_SIDEKIQ_PARAMS config.client_middleware do |chain| chain.add SidekiqUniqueJobs::Middleware::Client |