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 | d668ce2ff8f308e54c1c7a2c145cb3479cab899d (patch) | |
| tree | 851ceb314782a9428cac36d48fb5abc5805ead5f /src/remake/switch.rs | |
| parent | c13cee08dedeb8e73560f9bf9f7154c9fa089e2d (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); |
