bundler/lib/bundler/fetcher/compact_index.rb in rubygems-update-3.2.20 vs bundler/lib/bundler/fetcher/compact_index.rb in rubygems-update-3.2.21
- old
+ new
@@ -109,10 +109,10 @@
end
def bundle_worker(func = nil)
@bundle_worker ||= begin
worker_name = "Compact Index (#{display_uri.host})"
- Bundler::Worker.new(Bundler.current_ruby.rbx? ? 1 : 25, worker_name, func)
+ Bundler::Worker.new(Bundler.settings.processor_count, worker_name, func)
end
@bundle_worker.tap do |worker|
worker.instance_variable_set(:@func, func) if func
end
end