File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def serial_compact_index_client
111111 def bundle_worker ( func = nil )
112112 @bundle_worker ||= begin
113113 worker_name = "Compact Index (#{ display_uri . host } )"
114- Bundler ::Worker . new ( Bundler . current_ruby . rbx? ? 1 : 25 , worker_name , func )
114+ Bundler ::Worker . new ( Bundler . settings . processor_count , worker_name , func )
115115 end
116116 @bundle_worker . tap do |worker |
117117 worker . instance_variable_set ( :@func , func ) if func
Original file line number Diff line number Diff line change @@ -222,14 +222,7 @@ def installation_parallelization(options)
222222 # Parallelization has some issues on Windows, so it's not yet the default
223223 return 1 if Gem . win_platform?
224224
225- processor_count
226- end
227-
228- def processor_count
229- require "etc"
230- Etc . nprocessors
231- rescue StandardError
232- 1
225+ Bundler . settings . processor_count
233226 end
234227
235228 def load_plugins
Original file line number Diff line number Diff line change @@ -210,6 +210,13 @@ def pretty_values_for(exposed_key)
210210 locations
211211 end
212212
213+ def processor_count
214+ require "etc"
215+ Etc . nprocessors
216+ rescue StandardError
217+ 1
218+ end
219+
213220 # for legacy reasons, in Bundler 2, we do not respect :disable_shared_gems
214221 def path
215222 configs . each do |_level , settings |
You can’t perform that action at this time.
0 commit comments