aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 05:01:17 +0100
committertv <tv@krebsco.de>2026-10-31 05:01:17 +0100
commit6f9486a26b12828bcf553a6359673784c722ddcc (patch)
tree34b3650d2fda697b4d75f0179bd5dece9fd4ec68 /src/remake
parent720a349d04a7a267461b21679ee2f748b8d8e957 (diff)
replace EpochInfo by EpochRecord
Diffstat (limited to 'src/remake')
-rw-r--r--src/remake/records.rs17
1 files changed, 1 insertions, 16 deletions
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<Epoch> 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<Epoch> {