mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
don't use the original options in client_opts, it's being used for the pool
This commit is contained in:
parent
5c538f9f12
commit
b1fcb62ff7
1 changed files with 8 additions and 7 deletions
|
@ -37,18 +37,19 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def client_opts(options)
|
||||
if options[:namespace]
|
||||
options.delete(:namespace)
|
||||
opts = options.dup
|
||||
if opts[:namespace]
|
||||
opts.delete(:namespace)
|
||||
end
|
||||
|
||||
if options[:network_timeout]
|
||||
options[:timeout] = options[:network_timeout]
|
||||
options.delete(:network_timeout)
|
||||
if opts[:network_timeout]
|
||||
opts[:timeout] = opts[:network_timeout]
|
||||
opts.delete(:network_timeout)
|
||||
end
|
||||
|
||||
options[:driver] = options[:driver] || 'ruby'
|
||||
opts[:driver] = opts[:driver] || 'ruby'
|
||||
|
||||
options
|
||||
opts
|
||||
end
|
||||
|
||||
def log_info(options)
|
||||
|
|
Loading…
Reference in a new issue