Skip to content

Commit 39e256a

Browse files
committed
Fix sizeCalculation.
1 parent 5837e14 commit 39e256a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ export class MongoSyncBucketStorage
933933
max: 50,
934934
maxSize: 10 * 1024 * 1024,
935935
sizeCalculation: (value: CheckpointChanges) => {
936-
return value.updatedParameterBucketDefinitions.reduce<number>((a, b) => a + b.length, 0);
936+
return 100 + value.updatedParameterBucketDefinitions.reduce<number>((a, b) => a + b.length, 0);
937937
},
938938
fetchMethod: async (_key, _staleValue, options) => {
939939
return this.getCheckpointChangesInternal(options.context.options);

0 commit comments

Comments
 (0)