Skip to content

Commit

Permalink
with_cap(4)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmouse committed May 14, 2024
1 parent fa2fa03 commit 0d91168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/jellyfish-merkle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ where
) -> Result<(Option<(HashValue, (K, Version))>, SparseMerkleProofExt)> {
// Empty tree just returns proof with no sibling hash.
let mut next_node_key = NodeKey::new_empty_path(version);
let mut out_siblings = vec![];
let mut out_siblings = Vec::with_capacity(4);
let nibble_path = NibblePath::new_even(key.to_vec());
let mut nibble_iter = nibble_path.nibbles();

Expand Down

0 comments on commit 0d91168

Please sign in to comment.