docs: specify the updated LsmIterator::new constructor signature (#150)

This commit is contained in:
Liu Jinyi
2025-05-31 14:04:13 +08:00
committed by GitHub
parent 47ad0802a9
commit 4c8d4ebf23
3 changed files with 9 additions and 4 deletions

View File

@@ -38,6 +38,7 @@ impl BlockBuilder {
}
/// Adds a key-value pair to the block. Returns false when the block is full.
/// You may find the `bytes::BufMut` trait useful for manipulating binary data.
#[must_use]
pub fn add(&mut self, key: KeySlice, value: &[u8]) -> bool {
unimplemented!()

View File

@@ -57,7 +57,7 @@ impl SsTableBuilder {
/// Builds the SSTable and writes it to the given path. Use the `FileObject` structure to manipulate the disk objects.
pub fn build(
self,
mut self,
id: usize,
block_cache: Option<Arc<BlockCache>>,
path: impl AsRef<Path>,