perf(scanner): Change DataUseageEntry from clone to borrow (#1757)

Signed-off-by: evan slack <51209817+evanofslack@users.noreply.github.com>
Signed-off-by: houseme <housemecn@gmail.com>
Co-authored-by: loverustfs <hello@rustfs.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
evan slack
2026-02-09 19:53:26 -05:00
committed by GitHub
parent f4e9ef2edc
commit 682b5bbb2f
2 changed files with 12 additions and 18 deletions
+1 -4
View File
@@ -734,10 +734,7 @@ impl FolderScanner {
self.send_update().await;
}
if !into.compacted
&& let Some(parent) = self.update_cache.find(&this_hash.key())
&& !parent.compacted
{
if !into.compacted && self.update_cache.find(&this_hash.key()).is_some_and(|v| !v.compacted) {
self.update_cache.delete_recursive(&h);
self.update_cache
.copy_with_children(&self.new_cache, &h, &Some(this_hash.clone()));