nit: backfill stronger (#10738)

This commit is contained in:
jif-oai 2026-02-05 12:30:16 +00:00 committed by GitHub
parent 97582ac52d
commit aa46b5cf99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -276,9 +276,28 @@ async fn collect_rollout_paths(root: &Path) -> std::io::Result<Vec<PathBuf>> {
continue;
}
};
while let Some(entry) = read_dir.next_entry().await? {
loop {
let next_entry = match read_dir.next_entry().await {
Ok(next_entry) => next_entry,
Err(err) => {
warn!(
"failed to read directory entry under {}: {err}",
dir.display()
);
continue;
}
};
let Some(entry) = next_entry else {
break;
};
let path = entry.path();
let file_type = entry.file_type().await?;
let file_type = match entry.file_type().await {
Ok(file_type) => file_type,
Err(err) => {
warn!("failed to read file type for {}: {err}", path.display());
continue;
}
};
if file_type.is_dir() {
stack.push(path);
continue;