summaryrefslogtreecommitdiffstats
path: root/src/compaction/records.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compaction/records.rs')
-rw-r--r--src/compaction/records.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compaction/records.rs b/src/compaction/records.rs
index ce2b2a5..fbb9fb9 100644
--- a/src/compaction/records.rs
+++ b/src/compaction/records.rs
@@ -76,8 +76,10 @@ pub(crate) struct Retention {
pub(crate) struct Policy {
/// How stale a returning node's changes may be and still be replayed automatically;
/// beyond it they are quarantined.
+ #[serde(default = "Policy::default_replay_window")]
pub(crate) replay_window: Retention,
/// How long nodes keep the old epoch's document.
+ #[serde(default = "Policy::default_archive_retention")]
pub(crate) archive_retention: Retention,
}