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/peer.rs | |
| parent | c13cee08dedeb8e73560f9bf9f7154c9fa089e2d (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> { |
