From bdfd736e73a490bd5783011171422601118188f7 Mon Sep 17 00:00:00 2001 From: Waclaw Banasik Date: Fri, 9 Aug 2024 09:59:10 +0100 Subject: [PATCH] fix(congestion) - remove error log in promis yield handling (#11875) 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 https://github.com/near/nearcore/issues/11873. --- runtime/runtime/src/congestion_control.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/runtime/src/congestion_control.rs b/runtime/runtime/src/congestion_control.rs index c830979ba45..cafa9886222 100644 --- a/runtime/runtime/src/congestion_control.rs +++ b/runtime/runtime/src/congestion_control.rs @@ -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(_) => {