aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-11-14 15:45:01 +0100
committerAlex Auvolat <alex@adnab.me>2023-11-14 15:45:01 +0100
commit7ef2c231208073db5a0a0a8674e2dd2d2ecb2222 (patch)
tree5700d4cfab798bf1a7320e4ead8114c110112c20 /src/rpc
parent90e1619b1e9f5d81e59da371f04717f0c4fe5afc (diff)
downloadgarage-7ef2c231208073db5a0a0a8674e2dd2d2ecb2222.tar.gz
garage-7ef2c231208073db5a0a0a8674e2dd2d2ecb2222.zip
layout: fix test
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/layout/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/layout/test.rs b/src/rpc/layout/test.rs
index 0ce090d2..e9639073 100644
--- a/src/rpc/layout/test.rs
+++ b/src/rpc/layout/test.rs
@@ -35,7 +35,7 @@ fn check_against_naive(cl: &LayoutVersion) -> Result<bool, Error> {
}
for uuid in cl.nongateway_nodes() {
let z = cl.get_node_zone(&uuid)?;
- let c = cl.get_node_capacity(&uuid)?;
+ let c = cl.get_node_capacity(&uuid).unwrap();
zone_token.insert(
z.to_string(),
zone_token[z] + min(NB_PARTITIONS, (c / over_size) as usize),