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
@@ -453,7 +453,7 @@ impl<'a> BucketHelper<'a> {
use garage_rpc::layout::ClusterLayout;
use std::sync::Arc;
let layout: Arc<ClusterLayout> = self.0.system.layout_watch.borrow().clone();
let layout: Arc<ClusterLayout> = self.0.system.cluster_layout().clone();
let k2vindexes = self
.0
.k2v