local_working_copy: leverage iterator API of channel receiver

This commit is contained in:
Yuya Nishihara 2024-12-02 20:31:00 +09:00
parent 934a2ba478
commit 824cd132cc

View file

@ -972,12 +972,12 @@ impl TreeState {
.collect()
});
trace_span!("process tree entries").in_scope(|| {
while let Ok((path, tree_values)) = tree_entries_rx.recv() {
for (path, tree_values) in &tree_entries_rx {
tree_builder.set_or_remove(path, tree_values);
}
});
trace_span!("process present files").in_scope(|| {
while let Ok(path) = present_files_rx.recv() {
for path in &present_files_rx {
deleted_files.remove(&path);
}
});