From af7cbdaf7ef539f1b079c86af1be2d15a744c050 Mon Sep 17 00:00:00 2001 From: fundon Date: Wed, 7 May 2025 02:54:26 +0000 Subject: [PATCH] fix(nbstore): should not force throw error (#12152) ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of oversized blobs by allowing operations to continue after notifying about size limits, instead of stopping execution with an error. --- packages/common/nbstore/src/frontend/blob.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/common/nbstore/src/frontend/blob.ts b/packages/common/nbstore/src/frontend/blob.ts index 620ce377b..54d898876 100644 --- a/packages/common/nbstore/src/frontend/blob.ts +++ b/packages/common/nbstore/src/frontend/blob.ts @@ -40,7 +40,6 @@ export class BlobFrontend { for (const cb of this.onReachedMaxBlobSizeCallbacks) { cb(blob.data.byteLength); } - throw new Error('Blob size exceeds the maximum limit'); } await using lock = await this.lock.lock('blob', blob.key); await this.storage.set(blob);