summaryrefslogtreecommitdiffstats
path: root/src/swarm/relay.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/relay.rs')
-rw-r--r--src/swarm/relay.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs
index 5053be7..4bfc2b6 100644
--- a/src/swarm/relay.rs
+++ b/src/swarm/relay.rs
@@ -147,8 +147,7 @@ pub(crate) async fn pull_if_behind(state: &AppState, peer: &str, remote: &transp
match missing {
Some(heads) => {
// Automerge asks for whatever these heads need that we don't have.
- peer_state.sync.state.their_heads = Some(heads);
- peer_state.sync.state.in_flight = false;
+ peer_state.sync.pull_from(heads);
}
// A fresh session's opening carries our heads and bloom filter; the answer
// brings what we lack.