-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pruner, stages): logs for Prune stage #9520
Conversation
Prune
stage logsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, optional suggestion
impl From<PruneProgress> for PrunerOutput { | ||
fn from(progress: PruneProgress) -> Self { | ||
Self { progress, segments: Vec::new() } | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do a new function for this instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, done
Closes #9515
The change itself is just this line
reth/crates/stages/stages/src/stages/prune.rs
Line 52 in 2dc3677
But I also needed to introduce a better output for the
Pruner::run
, which required juggling the pruner types around two crates.