Skip to content

Commit

Permalink
Fix compilation without try-runtime feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Sep 23, 2024
1 parent 64770cc commit 4dd1326
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions system-parachains/coretime/coretime-polkadot/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

use crate::{weights, Runtime, RuntimeOrigin};
use frame_support::{pallet_prelude::*, traits::OnRuntimeUpgrade};
use pallet_broker::{CoreAssignment, Leases, LeasesRecordOf, WeightInfo};
#[cfg(feature = "try-runtime")]
use pallet_broker::{
CoreAssignment::{Pool, Task},
CoreMask, LeaseRecordItem, PotentialRenewalId, PotentialRenewalRecord, PotentialRenewals,
SaleInfo, SaleInfoRecordOf, Schedule, ScheduleItem, Workplan,
CoreAssignment, CoreAssignment::Pool, CoreMask, LeaseRecordItem, Leases, LeasesRecordOf,
PotentialRenewalId, PotentialRenewals, Schedule, ScheduleItem, WeightInfo, Workplan,
};

use sp_std::vec::Vec;

#[cfg(feature = "try-runtime")]
use sp_runtime::TryRuntimeError;
use pallet_broker::{CoreAssignment::Task, PotentialRenewalRecord, SaleInfo, SaleInfoRecordOf};
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;
use sp_runtime::TryRuntimeError;

/// The log target.
const TARGET: &str = "runtime::bootstrapping::fix-migration";
Expand Down

0 comments on commit 4dd1326

Please sign in to comment.