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/swarm/peer.rs | |
| parent | 9b242809f874248c07130156ad9cb34c85e950ac (diff) | |
move protocol paths to dedicated module
Diffstat (limited to 'src/swarm/peer.rs')
| -rw-r--r-- | src/swarm/peer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/peer.rs b/src/swarm/peer.rs index 1240966..651e067 100644 --- a/src/swarm/peer.rs +++ b/src/swarm/peer.rs @@ -11,6 +11,7 @@ use tokio::sync::Mutex; use tokio::time::{Instant, MissedTickBehavior}; use tracing::{debug, info, instrument, trace, warn}; +use crate::document::meta; use crate::document::replica::{Epoch, EpochRelation}; use crate::document::store::{self, StoreError}; use crate::state::{AppState, HelloState, Liveness, PeerState, Standing}; @@ -20,13 +21,12 @@ use crate::transport::{self, ParsedMessage}; const PEER_TICK: Duration = Duration::from_millis(500); -const META_ROOT: &str = "_continuum"; const FORGET_CHECK_INTERVAL: Duration = Duration::from_secs(5); // --- forget records ---------------------------------------------------------- fn forgotten_dir() -> Vec<String> { - vec![META_ROOT.to_owned(), "forgotten".to_owned()] + meta::path(&[meta::FORGOTTEN]) } pub(crate) fn forgotten_path(pk: &str) -> Vec<String> { |
