Skip to content

Commit

Permalink
remove explicit drop
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed May 22, 2024
1 parent 0b12d53 commit 5fe9c3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flexidag/src/blockdag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,12 @@ impl BlockDAG {
.filter(|hash| self.storage.reachability_store.read().has(*hash).unwrap())
.collect::<Vec<_>>()
.into_iter();
let mut reachability_writer = reachability_store.write();
let add_block_result = inquirer::add_block(
reachability_writer.deref_mut(),
reachability_store.write().deref_mut(),
header.id(),
ghostdata.selected_parent,
&mut merge_set,
);
drop(reachability_writer);
match add_block_result {
Result::Ok(_) => (),
Err(reachability::ReachabilityError::DataInconsistency) => {
Expand Down

0 comments on commit 5fe9c3e

Please sign in to comment.