mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-08 05:09:10 -07:00
vecs: part 2
This commit is contained in:
@@ -6,7 +6,7 @@ use brk_vecs::{File, PAGE_SIZE};
|
||||
fn main() -> Result<()> {
|
||||
let file = File::open(Path::new("vecs"))?;
|
||||
|
||||
file.grow_if_needed(PAGE_SIZE * 1_000_000)?;
|
||||
file.set_min_len(PAGE_SIZE * 1_000_000)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user