@@ -392,10 +392,10 @@ pub struct ResponseInstruction {
392
392
393
393
impl ResponseInstruction {
394
394
fn into_instructions ( self ) -> MessageSendInstructions {
395
- let send_path = self . send_path ;
395
+ let destination = Destination :: BlindedPath ( self . send_path ) ;
396
396
match self . context {
397
- Some ( context) => MessageSendInstructions :: WithReplyPath { send_path , context } ,
398
- None => MessageSendInstructions :: WithoutReplyPath { send_path } ,
397
+ Some ( context) => MessageSendInstructions :: WithReplyPath { destination , context } ,
398
+ None => MessageSendInstructions :: WithoutReplyPath { destination } ,
399
399
}
400
400
}
401
401
}
@@ -407,7 +407,7 @@ pub enum MessageSendInstructions {
407
407
/// respond.
408
408
WithReplyPath {
409
409
/// The desination where we need to send our message.
410
- send_path : BlindedMessagePath ,
410
+ destination : Destination ,
411
411
/// The context to include in the reply path we'll give the recipient so they can respond
412
412
/// to us.
413
413
context : MessageContext ,
@@ -416,7 +416,7 @@ pub enum MessageSendInstructions {
416
416
/// recipient from responding.
417
417
WithoutReplyPath {
418
418
/// The desination where we need to send our message.
419
- send_path : BlindedMessagePath ,
419
+ destination : Destination ,
420
420
}
421
421
}
422
422
@@ -1342,9 +1342,9 @@ where
1342
1342
pub fn handle_onion_message_response < T : OnionMessageContents > (
1343
1343
& self , response : T , instructions : ResponseInstruction ,
1344
1344
) -> Result < Option < SendSuccess > , SendError > {
1345
- let ( response_path , context) = match instructions. into_instructions ( ) {
1346
- MessageSendInstructions :: WithReplyPath { send_path , context } => ( send_path , Some ( context) ) ,
1347
- MessageSendInstructions :: WithoutReplyPath { send_path } => ( send_path , None ) ,
1345
+ let ( destination , context) = match instructions. into_instructions ( ) {
1346
+ MessageSendInstructions :: WithReplyPath { destination , context } => ( destination , Some ( context) ) ,
1347
+ MessageSendInstructions :: WithoutReplyPath { destination } => ( destination , None ) ,
1348
1348
} ;
1349
1349
1350
1350
let message_type = response. msg_type ( ) ;
@@ -1363,7 +1363,7 @@ where
1363
1363
} else { None } ;
1364
1364
1365
1365
self . find_path_and_enqueue_onion_message (
1366
- response, Destination :: BlindedPath ( response_path ) , reply_path,
1366
+ response, destination , reply_path,
1367
1367
format_args ! (
1368
1368
"when responding with {} to an onion message" ,
1369
1369
message_type,
0 commit comments