refactor(storage): remove old admin surfaces (#3340)

This commit is contained in:
安正超
2026-06-11 11:28:09 +08:00
committed by GitHub
parent 87968275a7
commit 6b86e3875c
8 changed files with 115 additions and 159 deletions
+2 -4
View File
@@ -315,10 +315,8 @@ impl ECStore {
return (idx, 0, Vec::new());
}
let disk_infos = match pool.get_disks_by_key(object).get_disks(0, 0).await {
Ok(disks) => get_disk_infos(&disks).await,
Err(_) => Vec::new(),
};
let disks = pool.get_disks_by_key(object).disk_inventory().await;
let disk_infos = get_disk_infos(&disks).await;
(idx, pool.set_count, disk_infos)
}))