From ab99d107d7ad0cb7a34ddc51e002d3b2b8394e3d Mon Sep 17 00:00:00 2001 From: Erwan Or Date: Thu, 7 Mar 2024 15:51:34 -0400 Subject: [PATCH] jmt(tree_cache): construct node key internally --- src/tree_cache.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tree_cache.rs b/src/tree_cache.rs index 0f24821..d82d816 100644 --- a/src/tree_cache.rs +++ b/src/tree_cache.rs @@ -192,9 +192,8 @@ where pub fn new_overwrite( reader: &'a R, current_version: Version, - root_node_key: NodeKey, ) -> Result { - let mut node_cache = HashMap::new(); + let node_cache = HashMap::new(); let root_node_key = NodeKey::new_empty_path(current_version); Ok(Self { node_cache,