mirror of
				https://kkgithub.com/actions/cache.git
				synced 2025-10-31 18:51:49 +08:00 
			
		
		
		
	Fix threads array
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -1623,7 +1623,7 @@ function uploadFile(restClient, cacheId, archivePath) { | ||||
|         const responses = []; | ||||
|         const fd = fs.openSync(archivePath, "r"); // Use the same fd for serial reads? Will this work for parallel too? | ||||
|         const concurrency = 4; // # of HTTP requests in parallel | ||||
|         const threads = new Array(concurrency); | ||||
|         const threads = [...new Array(concurrency).keys()]; | ||||
|         core.debug("Awaiting all uploads"); | ||||
|         let offset = 0; | ||||
|         yield Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Josh Gross
					Josh Gross