From 13ca11861413b1ddd8b72d18312979482a38028e Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Tue, 27 Aug 2024 22:03:41 +0100 Subject: [PATCH] insert into map for tracking requested needs --- crates/corro-agent/src/api/peer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/corro-agent/src/api/peer.rs b/crates/corro-agent/src/api/peer.rs index 4522503b..3c96d4fb 100644 --- a/crates/corro-agent/src/api/peer.rs +++ b/crates/corro-agent/src/api/peer.rs @@ -1293,7 +1293,7 @@ pub async fn parallel_sync( new_versions .into_iter() .map(|versions| { - range.remove(versions.clone()); + range.insert(versions.clone()); SyncNeedV1::Full { versions } }) .collect() @@ -1318,7 +1318,7 @@ pub async fn parallel_sync( seqs: new_seqs .into_iter() .map(|seqs| { - range.remove(seqs.clone()); + range.insert(seqs.clone()); seqs }) .collect(),