mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Avoid acquiring another read lock while holding one to avoid potential deadlock (#6200)
* Avoid acquiring another read lock to avoid potential deadlock.
This commit is contained in:
@@ -1129,7 +1129,7 @@ impl Service {
|
||||
|
||||
Ok(BlockCacheUpdateOutcome {
|
||||
blocks_imported,
|
||||
head_block_number: self.inner.block_cache.read().highest_block_number(),
|
||||
head_block_number: block_cache.highest_block_number(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user