fix(nbstore): should not force throw error (#12152)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fundon
2025-05-07 02:54:26 +00:00
parent e45abebc7f
commit af7cbdaf7e

View File

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