Skip to content

Commit

Permalink
pallet-maintenance-mode: fix compilation with no default features
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Jul 27, 2023
1 parent 78fe8dd commit ed3525f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pallets/maintenance-mode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pub mod pallet {
// Write to storage
MaintenanceMode::<T>::put(true);
// Suspend XCM execution
#[cfg(feature = "xcm-support")]
if let Err(error) = T::XcmExecutionManager::suspend_xcm_execution() {
<Pallet<T>>::deposit_event(Event::FailedToSuspendIdleXcmExecution { error });
}
Expand Down Expand Up @@ -202,6 +203,7 @@ pub mod pallet {
// Write to storage
MaintenanceMode::<T>::put(false);
// Resume XCM execution
#[cfg(feature = "xcm-support")]
if let Err(error) = T::XcmExecutionManager::resume_xcm_execution() {
<Pallet<T>>::deposit_event(Event::FailedToResumeIdleXcmExecution { error });
}
Expand Down

0 comments on commit ed3525f

Please sign in to comment.