fix errors/delete_object

This commit is contained in:
weisd
2024-11-19 16:59:51 +08:00
parent 706fce49b9
commit 2ea2fd4308
4 changed files with 443 additions and 129 deletions
+8
View File
@@ -35,6 +35,14 @@ impl PoolMeta {
dont_save: false,
}
}
pub fn is_suspended(&self, idx: usize) -> bool {
if idx >= self.pools.len() {
return false;
}
self.pools[idx].decommission.is_some()
}
}
#[derive(Debug, Clone)]