aboutsummaryrefslogtreecommitdiff
path: root/src/model/index_counter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/index_counter.rs')
-rw-r--r--src/model/index_counter.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs
index d514cb06..9637cc4c 100644
--- a/src/model/index_counter.rs
+++ b/src/model/index_counter.rs
@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
use garage_db as db;
-use garage_rpc::layout::ClusterLayout;
+use garage_rpc::layout::LayoutHistory;
use garage_rpc::system::System;
use garage_util::background::BackgroundRunner;
use garage_util::data::*;
@@ -83,8 +83,8 @@ impl<T: CountedItem> Entry<T::CP, T::CS> for CounterEntry<T> {
}
impl<T: CountedItem> CounterEntry<T> {
- pub fn filtered_values(&self, layout: &ClusterLayout) -> HashMap<String, i64> {
- let nodes = &layout.node_id_vec[..];
+ pub fn filtered_values(&self, layout: &LayoutHistory) -> HashMap<String, i64> {
+ let nodes = &layout.current().node_id_vec[..];
self.filtered_values_with_nodes(nodes)
}