aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/relay.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/relay.rs')
-rw-r--r--src/swarm/relay.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs
index 54749b0..560a41e 100644
--- a/src/swarm/relay.rs
+++ b/src/swarm/relay.rs
@@ -153,7 +153,7 @@ pub(crate) struct Pending {
pub(crate) async fn announce(
state: &AppState,
from: &str,
- writers: &[(u64, Vec<crate::document::ChangeHash>)],
+ writers: &[(u64, Vec<crate::document::UnitId>)],
unauthored: bool,
) {
if !state.initial_sync_done.load(Ordering::Acquire) {
@@ -343,6 +343,8 @@ pub(crate) async fn pull_after_grace(state: &AppState, peer: &str, remote: &tran
crate::document::changes::missing(&replica.doc, remote.heads.listed())
};
if !missing.is_empty() {
+ let missing: Vec<crate::document::UnitId> =
+ missing.into_iter().map(Into::into).collect();
state.dissemination().announced(peer, &missing);
let grace = state
.lock_rtt()