cargo +nightly fmt

This commit is contained in:
Alexander Popiak
2021-11-24 17:25:32 +01:00
parent fb48a45d56
commit 0c2af0af3e
+3 -1
View File
@@ -382,7 +382,9 @@ impl<T: Config> Pallet<T> {
let weight = max_weight - weight_used;
match Self::handle_xcm_message(sender, sent_at, xcm, weight) {
Ok(used) => weight_used = weight_used.saturating_add(used),
Err(XcmError::WeightLimitReached(required)) if required <= max_weight => {
Err(XcmError::WeightLimitReached(required))
if required <= max_weight =>
{
// That message didn't get processed this time because of being
// too heavy. We leave it around for next time and bail.
remaining_fragments = last_remaining_fragments;