From d668ce2ff8f308e54c1c7a2c145cb3479cab899d Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 04:13:11 +0100 Subject: move protocol paths to dedicated module --- src/remake/switch.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/remake/switch.rs') diff --git a/src/remake/switch.rs b/src/remake/switch.rs index 9cc1ca0..65f296f 100644 --- a/src/remake/switch.rs +++ b/src/remake/switch.rs @@ -33,8 +33,9 @@ use super::kind::Translator; use super::local::LocalStatus; use super::quarantine; use super::records::{self, EpochRecord, Record}; -use super::snapshot::{self, META_ROOT, REMAKES}; +use super::snapshot; use super::vote; +use crate::document::meta::{self, REMAKES}; use crate::document::replica::Epoch; use crate::document::store; use crate::swarm::sync::paths_related; @@ -44,7 +45,7 @@ const TICK: Duration = Duration::from_secs(1); pub(crate) async fn run_worker(host: H) { info!("Starting remake worker"); - let records_dir = vec![META_ROOT.to_owned(), REMAKES.to_owned()]; + let records_dir = meta::path(&[REMAKES]); let mut changes = host.subscribe_changes(); let mut changes_closed = false; let mut tick = tokio::time::interval(TICK); -- cgit v1.3.1