DurableBatchPolicy.validate_batch: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/DurableBatchPolicy.bend as DurableBatchPolicy Lines 151-153 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=151&end_line=153 import Base import mylsm-lsm-store@0.6.0.1/src/coordinator/QueuePolicy.bend as QueuePolicy # Rejects a batch before storage access if its count or frame bytes exceed limits. def validate_batch(count: Nat, encoded_bytes: Nat) -> Validation: validate_batch.copies(QueuePolicy.nat.clone.pair(count), encoded_bytes) Uses (4): 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=validate_batch.copies https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/QueuePolicy.bend&name=nat.clone.pair