Skip to content

Commit

Permalink
Insert into map for tracking requested needs to prevent duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama committed Aug 28, 2024
1 parent 589ce3c commit 7847fa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/corro-agent/src/api/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion crates/corro-types/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const fn default_wal_threshold() -> usize {
10
}
const fn default_processing_queue() -> usize {
100000
5000000
}

/// Used for the apply channel
Expand Down

0 comments on commit 7847fa9

Please sign in to comment.