aboutsummaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
Diffstat (limited to 'src/state')
-rw-r--r--src/state/host.rs8
-rw-r--r--src/state/mod.rs6
-rw-r--r--src/state/peer.rs2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/state/host.rs b/src/state/host.rs
index 2fac94b..4ef12a1 100644
--- a/src/state/host.rs
+++ b/src/state/host.rs
@@ -160,10 +160,10 @@ impl AppState {
}
};
let paths = dropped.own_paths;
- let theirs: Vec<crate::access::screen::Refused> = dropped
+ let theirs: Vec<crate::document::screen::Refused> = dropped
.theirs
.into_iter()
- .map(|theirs| crate::access::screen::Refused {
+ .map(|theirs| crate::document::screen::Refused {
change: theirs.change,
committer: theirs.committer,
user: theirs.user,
@@ -559,12 +559,12 @@ impl Host for AppState {
tokio::task::spawn_blocking(move || {
let result = {
let mut replica = state.doc.blocking_write();
- // Judged first (`access::screen`), whether this document has a policy
+ // Judged first (`document::screen`), whether this document has a policy
// yet or not.
let result = {
let (epoch, epoch_seq) = (replica.epoch, replica.epoch_seq);
let replica = &mut *replica;
- crate::access::screen::apply_bytes(
+ crate::document::screen::apply_bytes(
&mut replica.doc,
epoch,
epoch_seq,
diff --git a/src/state/mod.rs b/src/state/mod.rs
index 4187654..ccd8a93 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -168,8 +168,8 @@ pub(crate) struct AppState {
/// (`--sign-every`).
pub(crate) sign_every: SignEvery,
/// Received changes waiting for their dependencies, and those refused, while the
- /// policy has them judged (`access::screen`). Locked after the document.
- pub(crate) screening: Arc<std::sync::Mutex<crate::access::screen::Screening>>,
+ /// policy has them judged (`document::screen`). Locked after the document.
+ pub(crate) screening: Arc<std::sync::Mutex<crate::document::screen::Screening>>,
/// The challenges logins by key used, until they expire (`access::challenge`).
pub(crate) challenges: Arc<std::sync::Mutex<crate::access::challenge::Used>>,
/// Sessions ended on this node in a swarm without a registry, where they can't be
@@ -327,7 +327,7 @@ impl AppState {
/// until it synced once with a ready neighbour (`release_writes`, `swarm::sync`), or
/// `KEPT_WRITER_WAIT` passed: so that a neighbour holding later changes of that writer,
/// which another copy of its files made (a backup restored, a disk rolled back), hands
- /// them over first, and the node takes a fresh writer then (`access::screen`).
+ /// them over first, and the node takes a fresh writer then (`document::screen`).
pub(crate) fn hold_writes(&self) {
self.writes_held.send_replace(true);
let held = Arc::clone(&self.writes_held);
diff --git a/src/state/peer.rs b/src/state/peer.rs
index 88cbb58..721a754 100644
--- a/src/state/peer.rs
+++ b/src/state/peer.rs
@@ -141,7 +141,7 @@ pub(crate) struct PeerState {
pub(crate) epoch_seq: Option<u32>,
/// The peer's run, from its HELLO or HELLO_REPLY: a new one starts `epoch_seq` over.
pub(crate) run_id: Option<crate::transport::RunId>,
- /// While we refuse the peer as a whole (`access::screen`): its run and `epoch_seq`
+ /// While we refuse the peer as a whole (`document::screen`): its run and `epoch_seq`
/// when we began to. Another means it has another document since (it dropped what
/// we refused, `swarm::refusals`, or rejoined): we sync with it again.
pub(crate) refused_with: Option<(Option<crate::transport::RunId>, Option<u32>)>,