Skip to content

Commit

Permalink
reconfigure Sidekiq client
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmaia committed Feb 5, 2016
1 parent 6959f1f commit e18a602
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/gush.rb
Expand Up @@ -33,14 +33,18 @@ def self.configuration

def self.configure
yield configuration
reconfigure_sidekiq_server
reconfigure_sidekiq
end

def self.reconfigure_sidekiq_server
def self.reconfigure_sidekiq
Sidekiq.configure_server do |config|
config.redis = { url: configuration.redis_url, queue: configuration.namespace}
end

Sidekiq.configure_client do |config|
config.redis = { url: configuration.redis_url, queue: configuration.namespace}
end
end
end

Gush.reconfigure_sidekiq_server
Gush.reconfigure_sidekiq

0 comments on commit e18a602

Please sign in to comment.