mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 19:43:20 +08:00
Adding missing progress time
This commit is contained in:
@@ -24,7 +24,7 @@ export async function uploadZipToBlobStorage(
|
||||
zipUploadStream: ZipUploadStream
|
||||
): Promise<BlobUploadResponse> {
|
||||
let uploadByteCount = 0
|
||||
const lastProgressTime = Date.now()
|
||||
let lastProgressTime = Date.now()
|
||||
|
||||
const maxConcurrency = getConcurrency()
|
||||
const bufferSize = getUploadChunkSize()
|
||||
@@ -52,6 +52,8 @@ export async function uploadZipToBlobStorage(
|
||||
throw new Error('Upload progress stalled.')
|
||||
}
|
||||
}, timeout)
|
||||
|
||||
lastProgressTime = Date.now()
|
||||
const options: BlockBlobUploadStreamOptions = {
|
||||
blobHTTPHeaders: {blobContentType: 'zip'},
|
||||
onProgress: uploadCallback
|
||||
|
||||
Reference in New Issue
Block a user