1
0
Fork 0

Adding missing progress time

pull/1712/head
Vallie Joseph 2024-04-09 20:40:08 +00:00
parent 98ce947a6c
commit 0d3d3bbb40
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -6,7 +6,7 @@
"packages": {
"": {
"name": "@actions/http-client",
"version": "2.2.0",
"version": "2.2.1",
"license": "MIT",
"dependencies": {
"tunnel": "^0.0.6",