From 3a4f0c0413f7e4eef5313882a7bcc43193166bbb Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 04:48:00 +0100 Subject: unify request_sync logic --- src/state/host.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/state/host.rs') diff --git a/src/state/host.rs b/src/state/host.rs index a165637..9d77f35 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -15,7 +15,6 @@ use super::{AppState, HelloState, NodeLifecycle, StaleView, Standing}; use crate::document::replica::Epoch; use crate::document::store::ChangeSet; use crate::remake::{Host, PeerSummary, RemakeState}; -use crate::swarm::sync::SyncEvent; impl AppState { /// After the document was replaced: every peer's sync state refers to the old @@ -56,7 +55,7 @@ impl AppState { } for (id, _) in peers { - let _ = self.sync_events.send(SyncEvent::PeerNeedsSync(id)); + self.request_sync(&id); } } } -- cgit v1.3.1