@@ -2573,7 +2573,7 @@ where
25732573 /// [`ChannelMonitorUpdateStatus::Completed`] without restarting. Because the API does not
25742574 /// otherwise directly enforce this, we enforce it in debug builds here by storing which one is
25752575 /// in use.
2576- #[cfg(all( not(test), debug_assertions ))]
2576+ #[cfg(not(test))]
25772577 monitor_update_type: AtomicUsize,
25782578
25792579 /// 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 {
33193319 panic!("{}", err_str);
33203320 },
33213321 ChannelMonitorUpdateStatus::InProgress => {
3322- #[cfg(all( not(test), debug_assertions ))]
3322+ #[cfg(not(test))]
33233323 if $self.monitor_update_type.swap(1, Ordering::Relaxed) == 2 {
33243324 panic!("Cannot use both ChannelMonitorUpdateStatus modes InProgress and Completed without restart");
33253325 }
@@ -3328,7 +3328,7 @@ macro_rules! handle_new_monitor_update {
33283328 false
33293329 },
33303330 ChannelMonitorUpdateStatus::Completed => {
3331- #[cfg(all( not(test), debug_assertions ))]
3331+ #[cfg(not(test))]
33323332 if $self.monitor_update_type.swap(2, Ordering::Relaxed) == 1 {
33333333 panic!("Cannot use both ChannelMonitorUpdateStatus modes InProgress and Completed without restart");
33343334 }
@@ -3592,7 +3592,7 @@ where
35923592
35933593 per_peer_state: FairRwLock::new(new_hash_map()),
35943594
3595- #[cfg(all( not(test), debug_assertions ))]
3595+ #[cfg(not(test))]
35963596 monitor_update_type: AtomicUsize::new(0),
35973597
35983598 pending_events: Mutex::new(VecDeque::new()),
@@ -14765,7 +14765,7 @@ where
1476514765
1476614766 per_peer_state: FairRwLock::new(per_peer_state),
1476714767
14768- #[cfg(all( not(test), debug_assertions ))]
14768+ #[cfg(not(test))]
1476914769 monitor_update_type: AtomicUsize::new(0),
1477014770
1477114771 pending_events: Mutex::new(pending_events_read),
0 commit comments