Skip to content

Commit

Permalink
fix(congestion) - remove error log in promis yield handling (#11875)
Browse files Browse the repository at this point in the history
There is no need to print an error in this case. Congestion Control does
not need to account for promise yields as indicated in the comment. This
is to fix #11873.
  • Loading branch information
wacban authored Aug 9, 2024
1 parent 595da68 commit 658ec13
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/runtime/src/congestion_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ pub(crate) fn receipt_congestion_gas(
// they never cross the shard boundaries. This makes it irrelevant
// for the congestion MVP, which only counts gas in the outgoing
// buffers and delayed receipts queue.
tracing::error!(target: "congestion_control", "Attempting to calculate congestion gas for a `PromiseYield`.");
Ok(0)
}
ReceiptEnum::PromiseResume(_) => {
Expand Down

0 comments on commit 658ec13

Please sign in to comment.