Skip to content

Commit

Permalink
[_]:WIP test multipart upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PixoDev committed Nov 21, 2023
1 parent 3a103e0 commit e2d257e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public struct NetworkFacade {
)

uploadedPartsConfigs.append(uploadedPartConfig)
partIndex += 1

}

try await encrypt.encryptFileIntoChunks(
Expand All @@ -147,6 +147,9 @@ public struct NetworkFacade {
// If something fails here, the error is propagated
// and the stream reading is stopped
try await processEncryptedChunk(encryptedChunk: encryptedChunk)
partIndex += 1

print("NEW PART INDEX", partIndex)
}

let finishUpload = try await uploadMultipart.finishUpload(bucketId: bucketId, uploadedParts: uploadedPartsConfigs, index: Data(index))
Expand Down

0 comments on commit e2d257e

Please sign in to comment.