aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/sync.rs')
-rw-r--r--src/swarm/sync.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs
index 45698fa..517f67d 100644
--- a/src/swarm/sync.rs
+++ b/src/swarm/sync.rs
@@ -43,7 +43,7 @@ async fn deliver_sync_to_peer(state: &AppState, peer: &str) -> Result<()> {
let now_with = (ps.run_id, ps.epoch_seq);
match (refusing, ps.refused_with) {
(false, _) => ps.refused_with = None,
- // All it commits builds on what we refused (`access::screen`).
+ // All it commits builds on what we refused (`document::screen`).
(true, None) => {
ps.refused_with = Some(now_with);
trace!("Refusing the peer as a whole; not syncing with it");
@@ -686,13 +686,13 @@ pub(crate) async fn handle_sync(
.logged_signed(|doc, known, log| {
let result = (|| {
// Judged first, each as the policy it was written under has it
- // (`access::screen`), whether this document has one yet or not;
+ // (`document::screen`), whether this document has one yet or not;
// and vouched for by the signatures it sent too, where that policy
// requires them.
{
let bytes = message.take_changes();
known.offer(doc, std::mem::take(&mut signatures));
- let outcome = crate::access::screen::apply_bytes(
+ let outcome = crate::document::screen::apply_bytes(
doc,
epoch,
epoch_seq,
@@ -1025,12 +1025,12 @@ async fn download_and_apply_delta(
let heads_before = replica.heads().to_vec();
{
// Its signatures wait for its changes (`Signatures::offer`), each checked as
- // they are judged (`access::screen`), whether this document has a policy yet
+ // they are judged (`document::screen`), whether this document has a policy yet
// or not.
let epoch_seq = replica.epoch_seq;
let replica = &mut *replica;
replica.signatures.offer(&replica.doc, signatures);
- let outcome = crate::access::screen::apply_bytes(
+ let outcome = crate::document::screen::apply_bytes(
&mut replica.doc,
epoch,
epoch_seq,