Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Aug 28, 2024
1 parent 1555f1a commit 12e337a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pallets/vesting-mbm/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,7 +50,6 @@ mod benches {

#[block]
{
// start from some cursor to avoid counting prefix read
crate::LazyMigration::<T, crate::weights::SubstrateWeight<T>>::step(None, &mut meter)
.unwrap();
}
Expand Down
3 changes: 0 additions & 3 deletions pallets/vesting-mbm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Runtime, crate::weights::SubstrateWeight<Runtime>>,);
type MigrationStatusHandler = ();
type MaxServiceWeight = MaxServiceWeight;
Expand Down

0 comments on commit 12e337a

Please sign in to comment.