summaryrefslogtreecommitdiffstats
path: root/src/remake/switch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs5
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);