Skip to content

Commit

Permalink
Update base_layer/core/src/base_node/comms_interface/inbound_handlers.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Stan Bondi <[email protected]>
  • Loading branch information
SWvheerden and sdbondi authored Jul 25, 2023
1 parent c37177c commit 49ef4c3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,14 @@ where B: BlockchainBackend + 'static
);
return Ok(());
}
if write_lock.contains(&block_hash) {
if !write_lock.insert(block_hash) {
debug!(
target: LOG_TARGET,
"Block with hash `{}` is already being reconciled",
block_hash.to_hex()
);
return Ok(());
}
write_lock.insert(block_hash);
}

debug!(
Expand Down

0 comments on commit 49ef4c3

Please sign in to comment.