fn delete_folder(log: &ReplicaLogger, path: &Path) {
    if let Err(err) = std::fs::remove_dir_all(path) {
        warn!(
            log,
            "Failed to remove incomplete state sync state at {}: {}",
            path.display(),
            err
        );
    };
}
/// Local helper function used to delete unfinished syncs from disk
Local helper function used to delete unfinished syncs from disk
Local helper function used to delete unfinished syncs from disk
fn delete_folder(log: &ReplicaLogger, path: &Path) {
    if let Err(err) = std::fs::remove_dir_all(path) {
        warn!(
            log,
            "Failed to remove incomplete state sync state at {}: {}",
            path.display(),
            err
        );
    };
}
fn delete_folder ( log : & ReplicaLogger , path : & Path ) { if let Err ( err ) = std :: fs :: remove_dir_all ( path ) { warn ! ( log " " path display ( ) err ) ; } ; }
Local helper function used to delete unfinished syncs from disk
Local helper function used to delete unfinished syncs from disk
log
&ReplicaLogger
path
&Path
log
&ReplicaLogger
path
&Path