Skip to content

Commit

Permalink
tweak for review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aschran committed Dec 20, 2024
1 parent 72b5e9b commit 36509f7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,7 @@ impl SharedObjectCongestionTracker {
let start_cost = self.compute_tx_start_at_cost(&shared_input_objects);
let end_cost = start_cost.saturating_add(tx_cost);

// Allow tx if it's within budget.
if end_cost <= self.max_accumulated_txn_cost_per_object_in_commit {
return None;
}

// Allow over-budget tx if it's not above the overage limits.
// Allow tx if it's within configured limits.
let burst_limit = self
.max_accumulated_txn_cost_per_object_in_commit
.saturating_add(self.allowed_txn_cost_overage_burst_per_object_in_commit);
Expand Down

0 comments on commit 36509f7

Please sign in to comment.