Skip to content

Commit 3b5b07e

Browse files
committedJan 22, 2025·
make extra sure we got precedence correct here
1 parent 6e05b8e commit 3b5b07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎crates/corro-agent/src/agent/handlers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ pub async fn handle_changes(
760760
// complicated loop to process changes efficiently w/ a max concurrency
761761
// and a minimum chunk size for bigger and faster SQLite transactions
762762
loop {
763-
while (buf_cost >= max_changes_chunk || !queue.is_empty() && join_set.is_empty())
763+
while (buf_cost >= max_changes_chunk || (!queue.is_empty() && join_set.is_empty()))
764764
&& join_set.len() < MAX_CONCURRENT
765765
{
766766
// Process if we hit the chunk size OR if we have any items and available capacity

0 commit comments

Comments
 (0)
Please sign in to comment.