diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-15 14:20:50 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-15 14:20:50 +0100 |
commit | 393c4d4515e0cdadadc8de8ae2df12e4371cff88 (patch) | |
tree | 1805db8a9697a723abd76f26f2cd421d9f5960a5 /src/garage/cli | |
parent | 65066c70640371cc318faddfb4c05c96de18e86d (diff) | |
download | garage-393c4d4515e0cdadadc8de8ae2df12e4371cff88.tar.gz garage-393c4d4515e0cdadadc8de8ae2df12e4371cff88.zip |
layout: add helper for cached/external values to centralize recomputation
Diffstat (limited to 'src/garage/cli')
-rw-r--r-- | src/garage/cli/layout.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/garage/cli/layout.rs b/src/garage/cli/layout.rs index 0f01a37a..51774314 100644 --- a/src/garage/cli/layout.rs +++ b/src/garage/cli/layout.rs @@ -49,7 +49,7 @@ pub async fn cmd_assign_role( }; let mut layout = fetch_layout(rpc_cli, rpc_host).await?; - let all_nodes = layout.all_nodes().into_owned(); + let all_nodes = layout.get_all_nodes(); let added_nodes = args .node_ids @@ -331,7 +331,6 @@ pub async fn send_layout( rpc_host: NodeID, mut layout: LayoutHistory, ) -> Result<(), Error> { - layout.update_hashes(); rpc_cli .call( &rpc_host, |