diff options
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> { |
