@@ -1333,12 +1333,6 @@ where
13331333 claim_from_onchain_tx,
13341334 outbound_amount_forwarded_msat,
13351335 } => {
1336- let prev_channel_id = prev_htlcs. first ( ) . map ( |h| h. channel_id ) ;
1337- let next_channel_id = next_htlcs. first ( ) . map ( |h| h. channel_id ) ;
1338- let prev_user_channel_id = prev_htlcs. first ( ) . and_then ( |h| h. user_channel_id ) ;
1339- let next_user_channel_id = next_htlcs. first ( ) . and_then ( |h| h. user_channel_id ) ;
1340- let prev_node_id = prev_htlcs. first ( ) . and_then ( |h| h. node_id ) ;
1341- let next_node_id = next_htlcs. first ( ) . and_then ( |h| h. node_id ) ;
13421336 {
13431337 let read_only_network_graph = self . network_graph . read_only ( ) ;
13441338 let nodes = read_only_network_graph. nodes ( ) ;
@@ -1659,26 +1653,24 @@ where
16591653
16601654 self . bump_tx_event_handler . handle_event ( & bte) . await ;
16611655 } ,
1662- LdkEvent :: OnionMessageIntercepted { next_hop, message } => {
1663- match next_hop {
1664- lightning:: blinded_path:: message:: NextMessageHop :: NodeId ( peer_node_id) => {
1665- if let Some ( om_mailbox) = self . om_mailbox . as_ref ( ) {
1666- om_mailbox. onion_message_intercepted ( peer_node_id, message) ;
1667- } else {
1668- log_trace ! (
1669- self . logger,
1670- "Onion message intercepted, but no onion message mailbox available"
1671- ) ;
1672- }
1673- } ,
1674- lightning:: blinded_path:: message:: NextMessageHop :: ShortChannelId ( scid) => {
1656+ LdkEvent :: OnionMessageIntercepted { next_hop, message } => match next_hop {
1657+ lightning:: blinded_path:: message:: NextMessageHop :: NodeId ( peer_node_id) => {
1658+ if let Some ( om_mailbox) = self . om_mailbox . as_ref ( ) {
1659+ om_mailbox. onion_message_intercepted ( peer_node_id, message) ;
1660+ } else {
16751661 log_trace ! (
16761662 self . logger,
1677- "Onion message intercepted for unknown SCID {}, ignoring" ,
1678- scid
1663+ "Onion message intercepted, but no onion message mailbox available"
16791664 ) ;
1680- } ,
1681- }
1665+ }
1666+ } ,
1667+ lightning:: blinded_path:: message:: NextMessageHop :: ShortChannelId ( scid) => {
1668+ log_trace ! (
1669+ self . logger,
1670+ "Onion message intercepted for unknown SCID {}, ignoring" ,
1671+ scid
1672+ ) ;
1673+ } ,
16821674 } ,
16831675 LdkEvent :: OnionMessagePeerConnected { peer_node_id } => {
16841676 if let Some ( om_mailbox) = self . om_mailbox . as_ref ( ) {
0 commit comments