diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-08 16:41:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-08 16:41:00 +0100 |
commit | 4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993 (patch) | |
tree | 40a54f544efc25dc7973f0e3766bb396feebbc24 /src/rpc/system.rs | |
parent | 12d1dbfc6b884be488e2d79c0b9e3c47490f5442 (diff) | |
download | garage-4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993.tar.gz garage-4a9c94514f49aa4e9880a8e0f5cf5a52d11ae993.zip |
avoid using layout_watch in System directly
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r-- | src/rpc/system.rs | 4 |
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( |