mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
perf(tree): do not wait for the sparse trie to drop (#15092)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -49,7 +49,10 @@ where
|
||||
/// This waits for new incoming [`SparseTrieUpdate`].
|
||||
///
|
||||
/// This concludes once the last trie update has been received.
|
||||
pub(super) fn run(self) -> Result<StateRootComputeOutcome, ParallelStateRootError> {
|
||||
///
|
||||
/// NOTE: This function does not take `self` by value to prevent blocking on [`SparseStateTrie`]
|
||||
/// drop.
|
||||
pub(super) fn run(&self) -> Result<StateRootComputeOutcome, ParallelStateRootError> {
|
||||
let now = Instant::now();
|
||||
let provider_ro = self.config.consistent_view.provider_ro()?;
|
||||
let in_memory_trie_cursor = InMemoryTrieCursorFactory::new(
|
||||
|
||||
Reference in New Issue
Block a user