Skip to content

Commit

Permalink
Update chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Sep 1, 2023
1 parent 9e70d7e commit 36ec869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async function importBlob(env: Env['Bindings'], name: string, digest: Digest) {
}

const contentLength = Number(res.headers.get('content-length') ?? 0)
const partSize = 1024 * 1024 * 100 // 500MB
const partSize = 1024 * 1024 * 750 // 500MB
const numberOfParts = Math.ceil(contentLength / partSize)

if (contentLength > partSize) {
Expand Down

0 comments on commit 36ec869

Please sign in to comment.