@@ -57,7 +57,6 @@ use core::task::{Poll, Waker};
57
57
use std:: collections:: VecDeque ;
58
58
use std:: ops:: Deref ;
59
59
use std:: sync:: { Arc , Condvar , Mutex , RwLock } ;
60
- use std:: time:: Duration ;
61
60
62
61
/// An event emitted by [`Node`], which should be handled by the user.
63
62
///
@@ -1045,22 +1044,6 @@ where
1045
1044
liquidity_source. handle_htlc_handling_failed ( failure_type) ;
1046
1045
}
1047
1046
} ,
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
- } ,
1064
1047
LdkEvent :: SpendableOutputs { outputs, channel_id } => {
1065
1048
match self
1066
1049
. output_sweeper
@@ -1161,7 +1144,7 @@ where
1161
1144
}
1162
1145
}
1163
1146
1164
- let user_channel_id: u128 = rand :: thread_rng ( ) . gen :: < u128 > ( ) ;
1147
+ let user_channel_id: u128 = thread_rng ( ) . gen :: < u128 > ( ) ;
1165
1148
let allow_0conf = self . config . trusted_peers_0conf . contains ( & counterparty_node_id) ;
1166
1149
let mut channel_override_config = None ;
1167
1150
if let Some ( ( lsp_node_id, _) ) = self
0 commit comments