aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-11-14 12:48:38 +0100
committerAlex Auvolat <alex@adnab.me>2023-11-14 12:48:38 +0100
commit8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3 (patch)
treec4d252eaf122d9dd583cb755dffeb7d776ae4b66 /src/model
parent9a491fa1372a23e91c793ee1d2b313607752826a (diff)
downloadgarage-8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3.tar.gz
garage-8e292e06b3fde1d3b5b019a26eabd4f0d9ac22c3.zip
layout: some refactoring of nongateway nodes
Diffstat (limited to 'src/model')
-rw-r--r--src/model/index_counter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs
index 9637cc4c..2d968733 100644
--- a/src/model/index_counter.rs
+++ b/src/model/index_counter.rs
@@ -84,8 +84,8 @@ impl<T: CountedItem> Entry<T::CP, T::CS> for CounterEntry<T> {
impl<T: CountedItem> CounterEntry<T> {
pub fn filtered_values(&self, layout: &LayoutHistory) -> HashMap<String, i64> {
- let nodes = &layout.current().node_id_vec[..];
- self.filtered_values_with_nodes(nodes)
+ let nodes = layout.all_nongateway_nodes();
+ self.filtered_values_with_nodes(&nodes)
}
pub fn filtered_values_with_nodes(&self, nodes: &[Uuid]) -> HashMap<String, i64> {