From 36ec8695d107c1903ec72ea8b5f591ab82ae69cc Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Fri, 1 Sep 2023 08:32:20 +0100 Subject: [PATCH] Update chunk size --- src/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry.ts b/src/registry.ts index e073056..2bdff44 100644 --- a/src/registry.ts +++ b/src/registry.ts @@ -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) {