feat(prune): timeout (#6958)

Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Emilia Hane
2024-04-03 12:28:49 +02:00
committed by GitHub
parent 68727699db
commit f71d9c0003
23 changed files with 899 additions and 343 deletions

View File

@ -677,6 +677,7 @@ where
let mut pruner = PrunerBuilder::new(prune_config.clone())
.max_reorg_depth(tree_config.max_reorg_depth() as usize)
.prune_delete_limit(config.chain.prune_delete_limit)
.timeout(PrunerBuilder::DEFAULT_TIMEOUT)
.build(provider_factory.clone());
let pruner_events = pruner.events();