diff options
author | Alex Auvolat <alex@adnab.me> | 2023-12-08 11:50:58 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-12-08 11:50:58 +0100 |
commit | 063294dd569e10c6d85e29eb6507249eece00956 (patch) | |
tree | 120dcffce9d6aa9768bdb255aa67d7d8a9291c47 /src/rpc/layout/test.rs | |
parent | 7f2541101f15614c79020b35d3d7dab767c32676 (diff) | |
download | garage-063294dd569e10c6d85e29eb6507249eece00956.tar.gz garage-063294dd569e10c6d85e29eb6507249eece00956.zip |
layout version: refactor get_node_zone
Diffstat (limited to 'src/rpc/layout/test.rs')
-rw-r--r-- | src/rpc/layout/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/layout/test.rs b/src/rpc/layout/test.rs index bb072c97..88eb518e 100644 --- a/src/rpc/layout/test.rs +++ b/src/rpc/layout/test.rs @@ -34,8 +34,8 @@ fn check_against_naive(cl: &LayoutVersion) -> Result<bool, Error> { zone_token.insert(z.clone(), 0); } for uuid in cl.nongateway_nodes() { - let z = cl.get_node_zone(&uuid)?; - let c = cl.get_node_capacity(&uuid).unwrap(); + let z = cl.expect_get_node_zone(&uuid); + let c = cl.expect_get_node_capacity(&uuid); zone_token.insert( z.to_string(), zone_token[z] + min(NB_PARTITIONS, (c / over_size) as usize), |