aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-06-30 15:03:34 +0200
committerAlex Auvolat <alex@adnab.me>2020-06-30 15:03:34 +0200
commitdb6f1f35a869f9afa22198ee2ac32a812afae3c5 (patch)
tree98e85621b6fcdf9d9f1bb758efbbac79987a439e /src/util
parentc56de7fdd1b6f1606e0f1f9a9e3038fa9dd479f8 (diff)
downloadgarage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.tar.gz
garage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.zip
Rename epidemic_factor to epidemic_fanout (that's what it is); complete conf example in readme
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 28349530..5c01712b 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -24,8 +24,8 @@ pub struct Config {
#[serde(default = "default_replication_factor")]
pub meta_replication_factor: usize,
- #[serde(default = "default_epidemic_factor")]
- pub meta_epidemic_factor: usize,
+ #[serde(default = "default_epidemic_fanout")]
+ pub meta_epidemic_fanout: usize,
#[serde(default = "default_replication_factor")]
pub data_replication_factor: usize,
@@ -57,7 +57,7 @@ fn default_block_size() -> usize {
fn default_replication_factor() -> usize {
3
}
-fn default_epidemic_factor() -> usize {
+fn default_epidemic_fanout() -> usize {
3
}