Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Aug 17, 2023
1 parent f2a3f5f commit 6ec4bfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/btreemap/node/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,9 @@ impl<K: Storable + Ord + Clone> Node<K> {

/// Returns the size of a v1 node in bytes.
pub(super) fn size_v1(max_key_size: u32, max_value_size: u32) -> Bytes {
let node_header_size = NodeHeader::size();
let max_key_size = Bytes::from(max_key_size);
let max_value_size = Bytes::from(max_value_size);

let node_header_size = NodeHeader::size();
let entry_size = U32_SIZE + max_key_size + max_value_size + U32_SIZE;
let child_size = Address::size();

Expand Down

0 comments on commit 6ec4bfb

Please sign in to comment.