mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Don't set the :url key unless available
This commit is contained in:
parent
05f874edea
commit
290d4f35df
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ module Sidekiq
|
|||
options[key.to_sym] = options.delete(key)
|
||||
end
|
||||
|
||||
options[:url] ||= determine_redis_provider
|
||||
if !options[:url] && (u = determine_redis_provider)
|
||||
options[:url] = u
|
||||
end
|
||||
|
||||
size = if options[:size]
|
||||
options[:size]
|
||||
|
|
Loading…
Reference in a new issue