[rubygems/rubygems] util/rubocop -A --only Performance/TimesMap
https://github.com/rubygems/rubygems/commit/976a351f8b
This commit is contained in:
parent
139f0927f5
commit
7ab4ede4f5
@ -159,7 +159,7 @@ class Gem::RequestSet
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Create N threads in a pool, have them download all the gems
|
# Create N threads in a pool, have them download all the gems
|
||||||
threads = Gem.configuration.concurrent_downloads.times.map do
|
threads = Array.new(Gem.configuration.concurrent_downloads) do
|
||||||
# When a thread pops this item, it knows to stop running. The symbol
|
# When a thread pops this item, it knows to stop running. The symbol
|
||||||
# is queued here so that there will be one symbol per thread.
|
# is queued here so that there will be one symbol per thread.
|
||||||
download_queue << :stop
|
download_queue << :stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user