Skip to content

Commit

Permalink
comment for inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 2, 2024
1 parent 1bed52d commit 1ea3105
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basecoin/store/src/avl/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ impl<K: Ord + AsBytes, V: Borrow<[u8]>> AvlTree<K, V> {
None
};

// this should be in the `if let Some(node) = node_ref` branch,
// just like `insert_rec`. But it is here to avoid borrowing issues.
if let Some(node) = node_ref {
node.update();
AvlTree::balance_node(node_ref);
Expand Down

0 comments on commit 1ea3105

Please sign in to comment.