pub const MAX_RECORDS_PER_BATCH: usize = 1_000_000;Expand description
Maximum number of records permitted in a single batch.
Used to cap Vec::with_capacity so a hostile broker cannot trigger a
multi-hundred-GiB allocation (each Record is ~100 bytes, so i32::MAX
records ≈ 200 GiB) by sending record_count = i32::MAX.