@@ -367,7 +367,7 @@ impl Responder {
367
367
/// Use when the recipient doesn't need to send back a reply to us.
368
368
pub fn respond < T : OnionMessageContents > ( self , response : T ) -> Option < ( T , MessageSendInstructions ) > {
369
369
Some ( ( response, MessageSendInstructions :: WithoutReplyPath {
370
- send_path : self . reply_path ,
370
+ destination : Destination :: BlindedPath ( self . reply_path ) ,
371
371
} ) )
372
372
}
373
373
@@ -376,7 +376,7 @@ impl Responder {
376
376
/// Use when the recipient needs to send back a reply to us.
377
377
pub fn respond_with_reply_path < T : OnionMessageContents > ( self , response : T , context : MessageContext ) -> Option < ( T , MessageSendInstructions ) > {
378
378
Some ( ( response, MessageSendInstructions :: WithReplyPath {
379
- send_path : self . reply_path ,
379
+ destination : Destination :: BlindedPath ( self . reply_path ) ,
380
380
context : context,
381
381
} ) )
382
382
}
@@ -389,7 +389,7 @@ pub enum MessageSendInstructions {
389
389
/// respond.
390
390
WithReplyPath {
391
391
/// The desination where we need to send our message.
392
- send_path : BlindedMessagePath ,
392
+ destination : Destination ,
393
393
/// The context to include in the reply path we'll give the recipient so they can respond
394
394
/// to us.
395
395
context : MessageContext ,
@@ -398,7 +398,7 @@ pub enum MessageSendInstructions {
398
398
/// recipient from responding.
399
399
WithoutReplyPath {
400
400
/// The desination where we need to send our message.
401
- send_path : BlindedMessagePath ,
401
+ destination : Destination ,
402
402
}
403
403
}
404
404
@@ -1324,9 +1324,9 @@ where
1324
1324
pub fn handle_onion_message_response < T : OnionMessageContents > (
1325
1325
& self , response_message : T , response : MessageSendInstructions ,
1326
1326
) -> Result < Option < SendSuccess > , SendError > {
1327
- let ( response_path , context) = match response {
1328
- MessageSendInstructions :: WithReplyPath { send_path , context } => ( send_path , Some ( context) ) ,
1329
- MessageSendInstructions :: WithoutReplyPath { send_path } => ( send_path , None ) ,
1327
+ let ( destination , context) = match response {
1328
+ MessageSendInstructions :: WithReplyPath { destination , context } => ( destination , Some ( context) ) ,
1329
+ MessageSendInstructions :: WithoutReplyPath { destination } => ( destination , None ) ,
1330
1330
} ;
1331
1331
1332
1332
let message_type = response_message. msg_type ( ) ;
@@ -1345,7 +1345,7 @@ where
1345
1345
} else { None } ;
1346
1346
1347
1347
self . find_path_and_enqueue_onion_message (
1348
- response_message, Destination :: BlindedPath ( response_path ) , reply_path,
1348
+ response_message, destination , reply_path,
1349
1349
format_args ! (
1350
1350
"when responding with {} to an onion message" ,
1351
1351
message_type,
0 commit comments