Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
gavofyork committed Sep 4, 2021
commit 19100dc827c87f13d87fa6d4cc0ff4c3bfbd4224
9 changes: 2 additions & 7 deletions runtime/parachains/src/ump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.


use crate::{
configuration::{self, HostConfiguration},
initializer,
};
use frame_support::pallet_prelude::*;
use primitives::v1::{Id as ParaId, UpwardMessage};
use sp_std::{
collections::btree_map::BTreeMap,
convert::TryFrom,
fmt,
marker::PhantomData,
prelude::*,
collections::btree_map::BTreeMap, convert::TryFrom, fmt, marker::PhantomData, prelude::*,
};
use xcm::latest::Outcome;

Expand Down Expand Up @@ -482,7 +477,7 @@ impl QueueCache {
}

/// Returns the message at the front of `para`'s queue, or `None` if the queue is empty.
///
///
/// Does not mutate the queue.
fn peek_front<T: Config>(&mut self, para: ParaId) -> Option<&UpwardMessage> {
let entry = self.ensure_cached::<T>(para);
Expand Down