Skip to content

Commit

Permalink
correctly decrement buf_cost for apply queue
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama authored and jeromegn committed Nov 29, 2024
1 parent 7d4512f commit c666551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/corro-agent/src/agent/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,9 @@ pub async fn handle_changes(
entry.remove_entry();
}
};
buf_cost -= dropped_change.processing_cost();
}

buf_cost -= dropped_change.processing_cost();
}

log_at_pow_10("dropped old change from queue", &mut drop_log_count);
Expand Down

0 comments on commit c666551

Please sign in to comment.