aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/system.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r--src/rpc/system.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 106e9f8c..93144e39 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -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(