Introduce total_count

This commit is contained in:
Yuriy Dupyn 2024-02-02 15:06:17 +01:00
parent cad4ba8215
commit 2f23df1009
3 changed files with 61 additions and 8 deletions

View file

@ -77,14 +77,14 @@ async fn main() -> Result<()> {
// let entry0: Entry<u32> = Entry::new(vec![99, 98, 97, 96, 95]);
// append_entry(&mut store, &entry0).await?;
store.read_entries(4).await.map_err(|e| e.to_io_or_panic())?;
store.read_entries(3).await.map_err(|e| e.to_io_or_panic())?;
// let entry2: StoreEntry<u32> = StoreEntry::new_deleted(vec![3, 2, 1]);
// let cursor2 = store.append_entry(&entry2).await.map_err(|e| e.to_io_or_panic())?;
// println!("cursor2 = {}", cursor2);
// println!("{:?}", store);
println!("{:?}", store);
println!("DONE");