mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
14 lines
428 B
Rust
14 lines
428 B
Rust
use reth_primitives::{BlockNumber, PruneProgress, PruneSegment};
|
|
use std::{collections::BTreeMap, time::Duration};
|
|
|
|
/// An event emitted by a [Pruner][crate::Pruner].
|
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
|
pub enum PrunerEvent {
|
|
/// Emitted when pruner finished running.
|
|
Finished {
|
|
tip_block_number: BlockNumber,
|
|
elapsed: Duration,
|
|
stats: BTreeMap<PruneSegment, (PruneProgress, usize)>,
|
|
},
|
|
}
|