mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 02:19: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()
|
lastProgressTime = Date.now()
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Timeout if the upload stalls
|
|
||||||
// const progressTimeout
|
|
||||||
const options: BlockBlobUploadStreamOptions = {
|
const options: BlockBlobUploadStreamOptions = {
|
||||||
blobHTTPHeaders: {blobContentType: 'zip'},
|
blobHTTPHeaders: {blobContentType: 'zip'},
|
||||||
onProgress: uploadCallback
|
onProgress: uploadCallback
|
||||||
@ -108,9 +106,6 @@ export async function uploadZipToBlobStorage(
|
|||||||
`No data was uploaded to blob storage. Reported upload byte count is 0.`
|
`No data was uploaded to blob storage. Reported upload byte count is 0.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear the progress timeout when upload completes
|
|
||||||
clearTimeout(chunkTimer(timeoutDuration))
|
|
||||||
return {
|
return {
|
||||||
uploadSize: uploadByteCount,
|
uploadSize: uploadByteCount,
|
||||||
sha256Hash
|
sha256Hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user