mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 00:45:35 +08:00
rename CONCURRENT to SPROCKETS_CONCURRENT
This commit is contained in:
parent
ba8aec2bc3
commit
d0c5dc9280
@ -124,7 +124,7 @@ def compress(from,to)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def concurrent?
|
def concurrent?
|
||||||
if ENV["CONCURRENT"] == "1"
|
if ENV["SPROCKETS_CONCURRENT"] == "1"
|
||||||
concurrent_compressors = []
|
concurrent_compressors = []
|
||||||
yield(Proc.new { |&block| concurrent_compressors << Concurrent::Future.execute { block.call } })
|
yield(Proc.new { |&block| concurrent_compressors << Concurrent::Future.execute { block.call } })
|
||||||
concurrent_compressors.each(&:wait!)
|
concurrent_compressors.each(&:wait!)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user