1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2012-03-13 21:44:04 -07:00
parent 2206ce7654
commit 66c275f42f

View file

@ -6,7 +6,7 @@ module Sidekiq
def self.create(options={})
url = options[:url] || ENV['REDISTOGO_URL'] || 'redis://localhost:6379/0'
if options[:use_pool] != false
ConnectionPool.new(:timeout => 1, :size => (options[:size] || Sidekiq.options[:concurrency] | 25)) do
ConnectionPool.new(:timeout => 1, :size => (options[:size] || Sidekiq.options[:concurrency] || 25)) do
build_client(url, options[:namespace])
end
else