diff options
| author | tv <tv@krebsco.de> | 2026-10-26 04:13:11 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 04:13:11 +0100 |
| commit | 735b27ad691f768027d6034a3f50efbd68feda89 (patch) | |
| tree | b44ac893b2bf36ff92e2652ef5082de49acbeb36 /src/remake/switch.rs | |
| parent | 9b242809f874248c07130156ad9cb34c85e950ac (diff) | |
move protocol paths to dedicated module
Diffstat (limited to 'src/remake/switch.rs')
| -rw-r--r-- | src/remake/switch.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<H: Host>(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); |
