Skip to content

Commit

Permalink
Fix typos in shared_object_congestion_tracker.rs (#21361)
Browse files Browse the repository at this point in the history
Fixed multiple typos in comments:
- Changed "burst limit bust be" to "burst limit must be" in assertion
message
- Removed duplicate backticks in "Insert tx" comments (2 instances)
  • Loading branch information
DeVikingMark authored Feb 27, 2025
1 parent b8fbf37 commit 2666607
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl SharedObjectCongestionTracker {
) -> Self {
assert!(
allowed_txn_cost_overage_burst_per_object_in_commit <= max_txn_cost_overage_per_object_in_commit,
"burst limit bust be <= absolute limit; allowed_txn_cost_overage_burst_per_object_in_commit = {allowed_txn_cost_overage_burst_per_object_in_commit}, max_txn_cost_overage_per_object_in_commit = {max_txn_cost_overage_per_object_in_commit}"
"burst limit must be <= absolute limit; allowed_txn_cost_overage_burst_per_object_in_commit = {allowed_txn_cost_overage_burst_per_object_in_commit}, max_txn_cost_overage_per_object_in_commit = {max_txn_cost_overage_per_object_in_commit}"
);

let object_execution_cost: HashMap<ObjectID, u64> =
Expand Down Expand Up @@ -664,7 +664,7 @@ mod object_cost_tests {
panic!("should defer");
}

// Insert `tx`` as previously deferred transaction due to randomness.
// Insert `tx` as previously deferred transaction due to randomness.
previously_deferred_tx_digests.insert(
*tx.digest(),
DeferralKey::Randomness {
Expand All @@ -691,7 +691,7 @@ mod object_cost_tests {
panic!("should defer");
}

// Insert `tx`` as previously deferred consensus transaction.
// Insert `tx` as previously deferred consensus transaction.
previously_deferred_tx_digests.insert(
*tx.digest(),
DeferralKey::ConsensusRound {
Expand Down

0 comments on commit 2666607

Please sign in to comment.