mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 21:39:07 +08:00
cleaning up comments and removing clear timeout outside of finaly
This commit is contained in:
parent
75b5e5376d
commit
5eea9e34e7
@ -60,8 +60,6 @@ export async function uploadZipToBlobStorage(
|
||||
lastProgressTime = Date.now()
|
||||
}
|
||||
|
||||
// // Timeout if the upload stalls
|
||||
// const progressTimeout
|
||||
const options: BlockBlobUploadStreamOptions = {
|
||||
blobHTTPHeaders: {blobContentType: 'zip'},
|
||||
onProgress: uploadCallback
|
||||
@ -108,9 +106,6 @@ export async function uploadZipToBlobStorage(
|
||||
`No data was uploaded to blob storage. Reported upload byte count is 0.`
|
||||
)
|
||||
}
|
||||
|
||||
// clear the progress timeout when upload completes
|
||||
clearTimeout(chunkTimer(timeoutDuration))
|
||||
return {
|
||||
uploadSize: uploadByteCount,
|
||||
sha256Hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user