aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-11 19:43:29 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-11 19:43:29 +0200
commitdcf58499a4f529e1033de65b4fca8d45458d60d2 (patch)
tree45cae7a9a1ee240c9e95c9e6591b96ebe679b047 /src/server.rs
parent53289b69e5037700689665b4edf20f2382ff15f6 (diff)
downloadgarage-dcf58499a4f529e1033de65b4fca8d45458d60d2.tar.gz
garage-dcf58499a4f529e1033de65b4fca8d45458d60d2.zip
table::insert_many, version_table::updated
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server.rs b/src/server.rs
index 1f926bf0..e1f6dc80 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -30,10 +30,10 @@ pub struct Config {
#[serde(default = "default_block_size")]
pub block_size: usize,
- #[serde(default = "default_meta_replication_factor")]
+ #[serde(default = "default_replication_factor")]
pub meta_replication_factor: usize,
- #[serde(default = "default_data_replication_factor")]
+ #[serde(default = "default_replication_factor")]
pub data_replication_factor: usize,
}
@@ -139,10 +139,7 @@ impl Garage {
fn default_block_size() -> usize {
1048576
}
-fn default_meta_replication_factor() -> usize {
- 3
-}
-fn default_data_replication_factor() -> usize {
+fn default_replication_factor() -> usize {
3
}