diff options
| author | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
| commit | 10f4e55b1c7d88eef1454ea02488de239489789b (patch) | |
| tree | 68d698c7fd0874cbf55318040c48b2024bf98e22 /src/state/host.rs | |
| parent | 2b4e99e1ed273da0f921eaec3e52300480acdf0a (diff) | |
document: screening what is received is the document's, the rules access control's
access::screen becomes document::screen: reading received bytes as
changes, putting them in order, keeping those that wait or are refused,
vouching by signatures and applying is all Automerge's shape, and has
each change judged by the rules (access::rules) before it applies it.
Diffstat (limited to 'src/state/host.rs')
| -rw-r--r-- | src/state/host.rs | 8 |
1 files changed, 4 insertions, 4 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, |
