mirror of https://github.com/actions/toolkit
cleaning up comments and removing clear timeout outside of finaly
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…
Reference in New Issue