mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-09 03:17:55 +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 {
|
Ok(BlockCacheUpdateOutcome {
|
||||||
blocks_imported,
|
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