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/swarm/bootstrap.rs | |
| parent | c13cee08dedeb8e73560f9bf9f7154c9fa089e2d (diff) | |
move protocol paths to dedicated module
Diffstat (limited to 'src/swarm/bootstrap.rs')
| -rw-r--r-- | src/swarm/bootstrap.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<String> { - vec![META_ROOT.to_owned(), SWARM.to_owned()] + meta::path(&[SWARM]) } /// The swarm ID the document names, if any. |
