@@ -1435,25 +1435,19 @@ where
1435
1435
"Received an onion message with path_id {:02x?} and {} reply_path: {:?}" ,
1436
1436
path_id, if reply_path. is_some( ) { "a" } else { "no" } , message) ;
1437
1437
1438
+ let responder = reply_path. map (
1439
+ |reply_path| Responder :: new ( reply_path, path_id)
1440
+ ) ;
1438
1441
match message {
1439
1442
ParsedOnionMessageContents :: Offers ( msg) => {
1440
- let responder = reply_path. map (
1441
- |reply_path| Responder :: new ( reply_path, path_id)
1442
- ) ;
1443
1443
let response_instructions = self . offers_handler . handle_message ( msg, responder) ;
1444
1444
let _ = self . handle_onion_message_response ( response_instructions) ;
1445
1445
} ,
1446
1446
ParsedOnionMessageContents :: AsyncPayments ( msg) => {
1447
- let responder = reply_path. map (
1448
- |reply_path| Responder :: new ( reply_path, path_id)
1449
- ) ;
1450
1447
let response_instructions = self . async_payments_handler . handle_message ( msg, responder) ;
1451
1448
let _ = self . handle_onion_message_response ( response_instructions) ;
1452
1449
} ,
1453
1450
ParsedOnionMessageContents :: Custom ( msg) => {
1454
- let responder = reply_path. map (
1455
- |reply_path| Responder :: new ( reply_path, path_id)
1456
- ) ;
1457
1451
let response_instructions = self . custom_handler . handle_custom_message ( msg, responder) ;
1458
1452
let _ = self . handle_onion_message_response ( response_instructions) ;
1459
1453
} ,
0 commit comments