aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 04:48:00 +0100
committertv <tv@krebsco.de>2026-10-31 04:48:00 +0100
commit3a4f0c0413f7e4eef5313882a7bcc43193166bbb (patch)
tree898e7d2d958d46b4b918b1d8a84a2210ec8c15bb /src/state/host.rs
parent602dcc39ba2f7cd8a3ef1cd9abbaa204d8b13643 (diff)
unify request_sync logic
Diffstat (limited to 'src/state/host.rs')
-rw-r--r--src/state/host.rs3
1 files changed, 1 insertions, 2 deletions
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);
}
}
}