From ed48eb5de7d9515b85abc628b4fff2dca5e20f45 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Wed, 25 Oct 2023 09:15:14 +0200 Subject: [PATCH] adds upstream changes --- parachain/pallets/outbound-queue/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parachain/pallets/outbound-queue/src/lib.rs b/parachain/pallets/outbound-queue/src/lib.rs index 2e561f00b8..ffcce70f2d 100644 --- a/parachain/pallets/outbound-queue/src/lib.rs +++ b/parachain/pallets/outbound-queue/src/lib.rs @@ -242,7 +242,7 @@ pub mod pallet { pub(crate) fn commit_messages() { let count = MessageLeaves::::decode_len().unwrap_or_default() as u64; if count == 0 { - return + return; } // Create merkle root of messages @@ -264,8 +264,8 @@ pub mod pallet { // Yield if the maximum number of messages has been processed this block. // This ensures that the weight of `on_finalize` has a known maximum bound. ensure!( - MessageLeaves::::decode_len().unwrap_or(0) < - T::MaxMessagesPerBlock::get() as usize, + MessageLeaves::::decode_len().unwrap_or(0) + < T::MaxMessagesPerBlock::get() as usize, ProcessMessageError::Yield ); @@ -403,7 +403,7 @@ pub mod pallet { ) -> Result { let weight = T::WeightInfo::do_process_message(); if meter.try_consume(weight).is_err() { - return Err(ProcessMessageError::Overweight(weight)) + return Err(ProcessMessageError::Overweight(weight)); } Self::do_process_message(origin, message) }