mirror of
https://github.com/actions/toolkit.git
synced 2025-06-12 02:30:32 +09:00
Adding missing progress time
This commit is contained in:
parent
98ce947a6c
commit
0d3d3bbb40
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue