aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 8196db6..412753e 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -312,6 +312,14 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[
Some("10m"),
"With store-vote-key: how long it holds an event before it holds it for a while: it proposes a checkpoint at the heads of such, and backs none whose heads leave out one it held for a while before it was proposed.",
),
+ #[cfg(feature = "federation")]
+ option(
+ "store-back-after",
+ Kind::Duration,
+ "DURATION",
+ Some("10m"),
+ "With store-vote-key: how long its store holds its checkpoint, or runs, by its own clock, before it backs or proposes a later one, by itself or by hand: a party it follows moves the store once that long at most, and just started it backs none, as it holds nothing for a while yet.",
+ ),
option(
"strict-keys",
Kind::List,
@@ -832,6 +840,12 @@ pub(crate) struct Settings {
with = "crate::units::duration_option"
)]
pub(crate) store_held_for: Duration,
+ #[cfg(feature = "federation")]
+ #[serde(
+ default = "default_store_held_for",
+ with = "crate::units::duration_option"
+ )]
+ pub(crate) store_back_after: Duration,
#[serde(default)]
pub(crate) strict_keys: Vec<String>,