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/swarm/bootstrap.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/swarm/bootstrap.rs') diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs index 5e9ac06..ad1de61 100644 --- a/src/swarm/bootstrap.rs +++ b/src/swarm/bootstrap.rs @@ -25,11 +25,12 @@ use tracing::{debug, info, warn}; use uuid::Uuid; use crate::document; +use crate::document::meta::{self, SWARM}; use crate::document::replica::Epoch; use crate::document::store; use crate::files::{FileKind, Files}; use crate::force::Force; -use crate::remake::snapshot::{self, META_ROOT, SWARM}; +use crate::remake::snapshot; use crate::state::AppState; use crate::swarm::peer::{remember_peer, send_hello_once}; @@ -139,7 +140,7 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String], start: Start) } fn swarm_id_path() -> Vec { - vec![META_ROOT.to_owned(), SWARM.to_owned()] + meta::path(&[SWARM]) } /// The swarm ID the document names, if any. -- cgit v1.3.1