From 12e337ae0f62f8c3487282c4b66f114cbdd0cb77 Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Wed, 28 Aug 2024 21:57:59 +0200 Subject: [PATCH] cleanup --- pallets/vesting-mbm/src/benchmarks.rs | 6 +++--- pallets/vesting-mbm/src/mock.rs | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pallets/vesting-mbm/src/benchmarks.rs b/pallets/vesting-mbm/src/benchmarks.rs index 0a773207e0..c0d401bcb0 100644 --- a/pallets/vesting-mbm/src/benchmarks.rs +++ b/pallets/vesting-mbm/src/benchmarks.rs @@ -20,8 +20,9 @@ use crate::{Config, Pallet}; use frame_benchmarking::v2::*; -use frame_support::traits::Currency; -use frame_support::{assert_ok, migrations::SteppedMigration, weights::WeightMeter}; +use frame_support::{ + assert_ok, migrations::SteppedMigration, traits::Currency, weights::WeightMeter, +}; use pallet_vesting::VestingInfo; use sp_runtime::traits::StaticLookup; use sp_std::vec; @@ -49,7 +50,6 @@ mod benches { #[block] { - // start from some cursor to avoid counting prefix read crate::LazyMigration::>::step(None, &mut meter) .unwrap(); } diff --git a/pallets/vesting-mbm/src/mock.rs b/pallets/vesting-mbm/src/mock.rs index dc4896a987..61f83c08ad 100644 --- a/pallets/vesting-mbm/src/mock.rs +++ b/pallets/vesting-mbm/src/mock.rs @@ -60,9 +60,6 @@ parameter_types! { #[derive_impl(pallet_migrations::config_preludes::TestDefaultConfig)] impl pallet_migrations::Config for Runtime { - // #[cfg(feature = "runtime-benchmarks")] - // type Migrations = pallet_migrations::mock_helpers::MockedMigrations; - // #[cfg(not(feature = "runtime-benchmarks"))] type Migrations = (crate::LazyMigration>,); type MigrationStatusHandler = (); type MaxServiceWeight = MaxServiceWeight;