Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Replaces fs-err in clean_orphaned_account_snapshot_dirs() #34902

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Jan 23, 2024

Problem

We're trying to remove the fs-err crate. For more information, please refer to #34838.

snapshot_utils::clean_orphaned_account_snapshot_dirs() still uses fs-err, but doesn't need to.

Summary of Changes

Replace fs-err with std::fs

@brooksprumo brooksprumo self-assigned this Jan 23, 2024
@brooksprumo brooksprumo marked this pull request as ready for review January 23, 2024 15:02
@brooksprumo brooksprumo requested a review from steviez January 23, 2024 15:02
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (8ff511e) 81.6% compared to head (fbc8b44) 81.6%.
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34902   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         827      827           
  Lines      223884   223896   +12     
=======================================
+ Hits       182841   182888   +47     
+ Misses      41043    41008   -35     

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two quick nits some similar looking logs that we have in core/src/validator.rs

core/src/validator.rs Outdated Show resolved Hide resolved
core/src/validator.rs Outdated Show resolved Hide resolved
@brooksprumo brooksprumo requested a review from steviez January 23, 2024 18:21
Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brooksprumo brooksprumo added the automerge Merge this Pull Request automatically once CI passes label Jan 23, 2024
@mergify mergify bot merged commit b150de6 into solana-labs:master Jan 23, 2024
36 checks passed
@brooksprumo brooksprumo deleted the errors/clean_orphaned_account_snapshot_dirs branch January 23, 2024 19:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants