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 2, 2024
1 parent c87e933 commit d0ba9eb
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 d0ba9eb

Please sign in to comment.