DurableBatchPolicy.validate_batch.counted: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend as DurableBatchPolicy Lines 127-139 of mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend&start_line=127&end_line=139 import Base # Applies the byte limit only after the mutation count is accepted. def validate_batch.counted( count: Nat, encoded_bytes: Nat, count_validation: Validation ) -> Validation: match count_validation: case ValidBatch{}: validate_frame_bytes(count, encoded_bytes, max_batch_bytes(), max_single_batch_bytes()) case EmptyBatch{}: EmptyBatch{} case BatchCountExceeded{}: BatchCountExceeded{} case BatchBytesExceeded{}: BatchBytesExceeded{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend&name=Validation https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend&name=max_batch_bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend&name=max_single_batch_bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend&name=validate_frame_bytes