aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/catchup.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/catchup.rs')
-rw-r--r--src/remake/catchup.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remake/catchup.rs b/src/remake/catchup.rs
index b8dc1b9..685385a 100644
--- a/src/remake/catchup.rs
+++ b/src/remake/catchup.rs
@@ -279,7 +279,7 @@ async fn start<H: Host>(host: &H, local: Epoch, target: Epoch, attempts: u32) {
}));
let actor = ActorId::random();
- host.remake().add_own_actor(actor.clone());
+ host.own_writers().add(actor.clone());
// At once: the fresh document takes no writes until the rejoin is done; a ready
// node's document so far answers reads, marked stale, and takes its writes
// meanwhile (`Host::begin_rejoin`).
@@ -386,7 +386,7 @@ async fn finish<H: Host>(host: &H) {
// meanwhile, and those after `began` are replayed under the lock in the end.
let copy = host.read_doc(|doc| doc.clone()).await;
let kept = host.rejoin_document().await;
- let own = host.remake().own_actors();
+ let own = host.own_writers().all();
let now = host.now_millis();
#[cfg(feature = "federation")]
let (holding, store) = (host.holding(), host.store_id());
@@ -560,7 +560,7 @@ async fn finish<H: Host>(host: &H) {
);
host.remake().set_catch_up(None);
let actor = host.read_doc(|doc| doc.get_actor().clone()).await;
- host.remake().reset_own_actors(actor);
+ host.own_writers().reset(actor);
info!(
from = %previous,
@@ -578,7 +578,7 @@ async fn finish<H: Host>(host: &H) {
/// Verifies the synced document `copy` and decides about the old document's own
/// changes: those up to `began` (when the rejoin began) by the replay window, those
/// after it (made during the rejoin) whatever it says. `own`: this node's actors
-/// (`RemakeState::own_actors`); the old document's own actor counts in any case.
+/// (`document::own::OwnWriters`); the old document's own actor counts in any case.
/// `now`: Unix milliseconds, by the node's clock.
fn prepare(
copy: &Document,