Skip to content

Commit

Permalink
jmt(tree_cache): construct node key internally
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Mar 7, 2024
1 parent 501bb14 commit ab99d10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tree_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ where
pub fn new_overwrite(
reader: &'a R,
current_version: Version,
root_node_key: NodeKey,
) -> Result<Self> {
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,
Expand Down

0 comments on commit ab99d10

Please sign in to comment.