mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 08:53:16 +00:00
local_working_copy: leverage iterator API of channel receiver
This commit is contained in:
parent
934a2ba478
commit
824cd132cc
1 changed files with 2 additions and 2 deletions
|
@ -972,12 +972,12 @@ impl TreeState {
|
||||||
.collect()
|
.collect()
|
||||||
});
|
});
|
||||||
trace_span!("process tree entries").in_scope(|| {
|
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);
|
tree_builder.set_or_remove(path, tree_values);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
trace_span!("process present files").in_scope(|| {
|
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);
|
deleted_files.remove(&path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue