diff options
| author | tv <tv@krebsco.de> | 2026-10-31 04:48:00 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 04:48:00 +0100 |
| commit | 6a8ea0aacd0012f9c1712c05dfa9cf14793eb1c7 (patch) | |
| tree | 9e0efa915d24cf617c653c5b2e8a7de526b9f562 /src/state/host.rs | |
| parent | 7705c7faf5c637b95c68c60d782dc564357eccb0 (diff) | |
unify request_sync logic
Diffstat (limited to 'src/state/host.rs')
| -rw-r--r-- | src/state/host.rs | 3 |
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); } } } |
