avoid using layout_watch in System directly

This commit is contained in:
Alex Auvolat
2023-11-08 16:41:00 +01:00
parent 12d1dbfc6b
commit 4a9c94514f
11 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ pub(crate) async fn check_quotas(
.await?;
let counters = counters
.map(|x| x.filtered_values(&garage.system.layout_watch.borrow()))
.map(|x| x.filtered_values(&garage.system.cluster_layout()))
.unwrap_or_default();
let (prev_cnt_obj, prev_cnt_size) = match prev_object {