@@ -57,7 +57,6 @@ use core::task::{Poll, Waker};
5757use std:: collections:: VecDeque ;
5858use std:: ops:: Deref ;
5959use std:: sync:: { Arc , Condvar , Mutex , RwLock } ;
60- use std:: time:: Duration ;
6160
6261/// An event emitted by [`Node`], which should be handled by the user.
6362///
@@ -1045,22 +1044,6 @@ where
10451044 liquidity_source. handle_htlc_handling_failed ( failure_type) ;
10461045 }
10471046 } ,
1048- LdkEvent :: PendingHTLCsForwardable { time_forwardable } => {
1049- let forwarding_channel_manager = self . channel_manager . clone ( ) ;
1050- let min = time_forwardable. as_millis ( ) as u64 ;
1051-
1052- let runtime_lock = self . runtime . read ( ) . unwrap ( ) ;
1053- debug_assert ! ( runtime_lock. is_some( ) ) ;
1054-
1055- if let Some ( runtime) = runtime_lock. as_ref ( ) {
1056- runtime. spawn ( async move {
1057- let millis_to_sleep = thread_rng ( ) . gen_range ( min..min * 5 ) as u64 ;
1058- tokio:: time:: sleep ( Duration :: from_millis ( millis_to_sleep) ) . await ;
1059-
1060- forwarding_channel_manager. process_pending_htlc_forwards ( ) ;
1061- } ) ;
1062- }
1063- } ,
10641047 LdkEvent :: SpendableOutputs { outputs, channel_id } => {
10651048 match self
10661049 . output_sweeper
@@ -1161,7 +1144,7 @@ where
11611144 }
11621145 }
11631146
1164- let user_channel_id: u128 = rand :: thread_rng ( ) . gen :: < u128 > ( ) ;
1147+ let user_channel_id: u128 = thread_rng ( ) . gen :: < u128 > ( ) ;
11651148 let allow_0conf = self . config . trusted_peers_0conf . contains ( & counterparty_node_id) ;
11661149 let mut channel_override_config = None ;
11671150 if let Some ( ( lsp_node_id, _) ) = self
0 commit comments