aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
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);
}
}
}