@@ -1098,7 +1098,6 @@ where
1098
1098
/// Notifier the lock contains sends out a notification when the lock is released.
1099
1099
total_consistency_lock : RwLock < ( ) > ,
1100
1100
1101
- #[ cfg( debug_assertions) ]
1102
1101
background_events_processed_since_startup : AtomicBool ,
1103
1102
1104
1103
persistence_notifier : Notifier ,
@@ -1872,9 +1871,7 @@ macro_rules! handle_new_monitor_update {
1872
1871
// update_maps_on_chan_removal needs to be able to take id_to_peer, so make sure we can in
1873
1872
// any case so that it won't deadlock.
1874
1873
debug_assert_ne!( $self. id_to_peer. held_by_thread( ) , LockHeldState :: HeldByThread ) ;
1875
- #[ cfg( debug_assertions) ] {
1876
- debug_assert!( $self. background_events_processed_since_startup. load( Ordering :: Acquire ) ) ;
1877
- }
1874
+ debug_assert!( $self. background_events_processed_since_startup. load( Ordering :: Acquire ) ) ;
1878
1875
match $update_res {
1879
1876
ChannelMonitorUpdateStatus :: InProgress => {
1880
1877
log_debug!( $self. logger, "ChannelMonitor update for {} in flight, holding messages until the update completes." ,
@@ -2060,7 +2057,6 @@ where
2060
2057
pending_events_processor : AtomicBool :: new ( false ) ,
2061
2058
pending_background_events : Mutex :: new ( Vec :: new ( ) ) ,
2062
2059
total_consistency_lock : RwLock :: new ( ( ) ) ,
2063
- #[ cfg( debug_assertions) ]
2064
2060
background_events_processed_since_startup : AtomicBool :: new ( false ) ,
2065
2061
persistence_notifier : Notifier :: new ( ) ,
2066
2062
@@ -4097,7 +4093,6 @@ where
4097
4093
fn process_background_events ( & self ) -> NotifyOption {
4098
4094
debug_assert_ne ! ( self . total_consistency_lock. held_by_thread( ) , LockHeldState :: NotHeldByThread ) ;
4099
4095
4100
- #[ cfg( debug_assertions) ]
4101
4096
self . background_events_processed_since_startup . store ( true , Ordering :: Release ) ;
4102
4097
4103
4098
let mut background_events = Vec :: new ( ) ;
0 commit comments