Minor performance fix
This commit is contained in:
parent
e7edd14eab
commit
9946abb12d
|
@ -116,10 +116,12 @@ impl BlockInformationStore {
|
|||
}
|
||||
|
||||
// update latest block
|
||||
{
|
||||
let latest_block = self.get_latest_block_arc(commitment_config);
|
||||
if slot > latest_block.read().await.slot {
|
||||
*latest_block.write().await = block_info.clone();
|
||||
}
|
||||
}
|
||||
|
||||
match self.blocks.entry(block_info.blockhash) {
|
||||
dashmap::mapref::entry::Entry::Occupied(entry) => {
|
||||
|
|
Loading…
Reference in New Issue