diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-11 19:43:29 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-11 19:43:29 +0200 |
commit | dcf58499a4f529e1033de65b4fca8d45458d60d2 (patch) | |
tree | 45cae7a9a1ee240c9e95c9e6591b96ebe679b047 /src/server.rs | |
parent | 53289b69e5037700689665b4edf20f2382ff15f6 (diff) | |
download | garage-dcf58499a4f529e1033de65b4fca8d45458d60d2.tar.gz garage-dcf58499a4f529e1033de65b4fca8d45458d60d2.zip |
table::insert_many, version_table::updated
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 9 |
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 } |