Skip to content

Commit a807c9a

Browse files
committed
Fix sizeCalculation.
1 parent 6320534 commit a807c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/module-mongodb-storage/src/storage/implementation/MongoSyncBucketStorage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ export class MongoSyncBucketStorage
914914
max: 50,
915915
maxSize: 10 * 1024 * 1024,
916916
sizeCalculation: (value: CheckpointChanges) => {
917-
return value.updatedParameterBucketDefinitions.reduce<number>((a, b) => a + b.length, 0);
917+
return 100 + value.updatedParameterBucketDefinitions.reduce<number>((a, b) => a + b.length, 0);
918918
},
919919
fetchMethod: async (_key, _staleValue, options) => {
920920
return this.getCheckpointChangesInternal(options.context.options);

0 commit comments

Comments
 (0)