Przeglądaj źródła

Download up to 5 files in parallel

James Allen 10 lat temu
rodzic
commit
37dbdc21bb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      services/clsi/app/coffee/ResourceWriter.coffee

+ 1 - 1
services/clsi/app/coffee/ResourceWriter.coffee

@@ -14,7 +14,7 @@ module.exports = ResourceWriter =
 			jobs = for resource in resources
 				do (resource) =>
 					(callback) => @_writeResourceToDisk(project_id, resource, basePath, callback)
-			async.series jobs, callback
+			async.parallelLimit jobs, 5, callback
 
 	_removeExtraneousFiles: (resources, basePath, _callback = (error) ->) ->
 		timer = new Metrics.Timer("unlink-output-files")