diff --git a/firewood/src/db.rs b/firewood/src/db.rs index 09a0285eb..7c8c8a152 100644 --- a/firewood/src/db.rs +++ b/firewood/src/db.rs @@ -320,7 +320,6 @@ impl + Send + Sync> DbRev { &self, start_key: Option, ) -> Result, api::Error> { - // TODO: get first key when start_key is None self.merkle .get_iter(start_key, self.header.kv_root) .map_err(|e| api::Error::InternalError(e.into())) diff --git a/firewood/src/merkle.rs b/firewood/src/merkle.rs index a1f4ec40d..32625192e 100644 --- a/firewood/src/merkle.rs +++ b/firewood/src/merkle.rs @@ -1179,12 +1179,11 @@ impl + Send + Sync> Merkle { self.store.flush_dirty() } - pub fn get_iter>( + pub(crate) fn get_iter>( &self, key: Option, root: DiskAddress, ) -> Result, MerkleError> { - // TODO: if DiskAddress::is_null() ... Ok(MerkleKeyValueStream { key_state: IteratorState::new(key), merkle_root: root,