diff options
Diffstat (limited to 'src/swarm/relay.rs')
| -rw-r--r-- | src/swarm/relay.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs index d11c3e0..1736cec 100644 --- a/src/swarm/relay.rs +++ b/src/swarm/relay.rs @@ -131,8 +131,8 @@ pub(crate) async fn pull_if_behind( // Those of the listed heads we lack. With a digest only a sample is listed; if we // have all of it, a later keepalive lists others. let missing = { - let mut replica = state.doc.write().await; - crate::document::changes::missing(&mut replica.doc, remote.heads.listed()) + let replica = state.doc.read().await; + crate::document::changes::missing(&replica.doc, remote.heads.listed()) }; if missing.is_empty() { return false; |
