Skip to content

Commit

Permalink
local_working_copy: leverage iterator API of channel receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Dec 3, 2024
1 parent 934a2ba commit 824cd13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 824cd13

Please sign in to comment.