From 6f9486a26b12828bcf553a6359673784c722ddcc Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 05:01:17 +0100 Subject: replace EpochInfo by EpochRecord --- src/remake/records.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/remake') diff --git a/src/remake/records.rs b/src/remake/records.rs index 720aea1..463d085 100644 --- a/src/remake/records.rs +++ b/src/remake/records.rs @@ -45,22 +45,7 @@ const DAY_MS: u64 = 24 * 60 * 60 * 1000; // --- record types ------------------------------------------------------------ -/// An epoch in a record: generation plus hex-encoded snapshot hash. -#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] -pub(crate) struct EpochRecord { - pub(crate) generation: u64, - pub(crate) id: String, -} - -impl From for EpochRecord { - fn from(epoch: Epoch) -> Self { - Self { - generation: epoch.generation, - id: epoch.id_hex(), - } - } -} +pub(crate) use crate::document::replica::EpochRecord; impl EpochRecord { pub(crate) fn to_epoch(&self) -> Option { -- cgit v1.3.1