@@ -2573,7 +2573,7 @@ where
2573
2573
/// [`ChannelMonitorUpdateStatus::Completed`] without restarting. Because the API does not
2574
2574
/// otherwise directly enforce this, we enforce it in debug builds here by storing which one is
2575
2575
/// in use.
2576
- #[cfg(all( not(test), debug_assertions ))]
2576
+ #[cfg(not(test))]
2577
2577
monitor_update_type: AtomicUsize,
2578
2578
2579
2579
/// The set of events which we need to give to the user to handle. In some cases an event may
@@ -3319,7 +3319,7 @@ macro_rules! handle_new_monitor_update {
3319
3319
panic!("{}", err_str);
3320
3320
},
3321
3321
ChannelMonitorUpdateStatus::InProgress => {
3322
- #[cfg(all( not(test), debug_assertions ))]
3322
+ #[cfg(not(test))]
3323
3323
if $self.monitor_update_type.swap(1, Ordering::Relaxed) == 2 {
3324
3324
panic!("Cannot use both ChannelMonitorUpdateStatus modes InProgress and Completed without restart");
3325
3325
}
@@ -3328,7 +3328,7 @@ macro_rules! handle_new_monitor_update {
3328
3328
false
3329
3329
},
3330
3330
ChannelMonitorUpdateStatus::Completed => {
3331
- #[cfg(all( not(test), debug_assertions ))]
3331
+ #[cfg(not(test))]
3332
3332
if $self.monitor_update_type.swap(2, Ordering::Relaxed) == 1 {
3333
3333
panic!("Cannot use both ChannelMonitorUpdateStatus modes InProgress and Completed without restart");
3334
3334
}
@@ -3592,7 +3592,7 @@ where
3592
3592
3593
3593
per_peer_state: FairRwLock::new(new_hash_map()),
3594
3594
3595
- #[cfg(all( not(test), debug_assertions ))]
3595
+ #[cfg(not(test))]
3596
3596
monitor_update_type: AtomicUsize::new(0),
3597
3597
3598
3598
pending_events: Mutex::new(VecDeque::new()),
@@ -14765,7 +14765,7 @@ where
14765
14765
14766
14766
per_peer_state: FairRwLock::new(per_peer_state),
14767
14767
14768
- #[cfg(all( not(test), debug_assertions ))]
14768
+ #[cfg(not(test))]
14769
14769
monitor_update_type: AtomicUsize::new(0),
14770
14770
14771
14771
pending_events: Mutex::new(pending_events_read),
0 commit comments