mirror of
				https://kkgithub.com/actions/cache.git
				synced 2025-10-31 18:51:49 +08:00 
			
		
		
		
	?
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -1631,10 +1631,12 @@ function uploadFile(restClient, cacheId, archivePath) { | ||||
|                 const chunkSize = offset + MAX_CHUNK_SIZE > fileSize ? fileSize - offset : MAX_CHUNK_SIZE; | ||||
|                 const start = offset; | ||||
|                 const end = offset + chunkSize - 1; | ||||
|                 core.debug(`Start: ${start} End: ${end}`); | ||||
|                 offset += MAX_CHUNK_SIZE; // Do this before losing thread during await? | ||||
|                 const chunk = fs.createReadStream(archivePath, { fd, start, end, autoClose: false }); | ||||
|                 responses.push(yield uploadChunk(restClient, resourceUrl, chunk, start, end)); | ||||
|             } | ||||
|             return Promise.resolve(); | ||||
|         }))); | ||||
|         fs.closeSync(fd); | ||||
|         const failedResponse = responses.find(x => !isSuccessStatusCode(x.statusCode)); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Josh Gross
					Josh Gross