aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/system.rs
diff options
context:
space:
mode:
authorMendes <mendes.oulamara@pm.me>2022-10-05 15:29:48 +0200
committerMendes <mendes.oulamara@pm.me>2022-10-05 15:29:48 +0200
commitceac3713d6639f9170fc3b4475fae4a30b34483c (patch)
treebb05a4272587ab69969eba39b0e5c5e3fbb5a529 /src/rpc/system.rs
parent829f815a897b04986559910bbcbf53625adcdf20 (diff)
downloadgarage-ceac3713d6639f9170fc3b4475fae4a30b34483c.tar.gz
garage-ceac3713d6639f9170fc3b4475fae4a30b34483c.zip
modifications in several files to :
- have consistent error return types - store the zone redundancy in a Lww - print the error and message in the CLI (TODO: for the server Api, should msg be returned in the body response?)
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r--src/rpc/system.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 7eb25195..9e0bfa11 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -196,7 +196,6 @@ impl System {
network_key: NetworkKey,
background: Arc<BackgroundRunner>,
replication_factor: usize,
- zone_redundancy: usize,
config: &Config,
) -> Result<Arc<Self>, Error> {
let node_key =
@@ -226,7 +225,7 @@ impl System {
"No valid previous cluster layout stored ({}), starting fresh.",
e
);
- ClusterLayout::new(replication_factor, zone_redundancy)
+ ClusterLayout::new(replication_factor)
}
};