mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-18 09:23:13 +00:00
avoid using layout_watch in System directly
This commit is contained in:
+2
-2
@@ -423,8 +423,8 @@ impl System {
|
||||
known_nodes
|
||||
}
|
||||
|
||||
pub fn get_cluster_layout(&self) -> ClusterLayout {
|
||||
self.layout_watch.borrow().as_ref().clone()
|
||||
pub fn cluster_layout(&self) -> watch::Ref<Arc<ClusterLayout>> {
|
||||
self.layout_watch.borrow()
|
||||
}
|
||||
|
||||
pub async fn update_cluster_layout(
|
||||
|
||||
Reference in New Issue
Block a user