Skip to content

Commit

Permalink
make extra sure we got precedence correct here
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Jan 22, 2025
1 parent 6e05b8e commit 3b5b07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/corro-agent/src/agent/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ pub async fn handle_changes(
// complicated loop to process changes efficiently w/ a max concurrency
// and a minimum chunk size for bigger and faster SQLite transactions
loop {
while (buf_cost >= max_changes_chunk || !queue.is_empty() && join_set.is_empty())
while (buf_cost >= max_changes_chunk || (!queue.is_empty() && join_set.is_empty()))
&& join_set.len() < MAX_CONCURRENT
{
// Process if we hit the chunk size OR if we have any items and available capacity
Expand Down

0 comments on commit 3b5b07e

Please sign in to comment.