@@ -344,20 +344,17 @@ impl OnionMessageRecipient {
344344pub struct Responder {
345345 /// The path along which a response can be sent.
346346 reply_path : BlindedPath ,
347- path_id : Option < [ u8 ; 32 ] >
348347}
349348
350349impl_writeable_tlv_based ! ( Responder , {
351350 ( 0 , reply_path, required) ,
352- ( 2 , path_id, option) ,
353351} ) ;
354352
355353impl Responder {
356354 /// Creates a new [`Responder`] instance with the provided reply path.
357- pub ( super ) fn new ( reply_path : BlindedPath , path_id : Option < [ u8 ; 32 ] > ) -> Self {
355+ pub ( super ) fn new ( reply_path : BlindedPath ) -> Self {
358356 Responder {
359357 reply_path,
360- path_id,
361358 }
362359 }
363360
@@ -368,7 +365,6 @@ impl Responder {
368365 ResponseInstruction :: WithoutReplyPath ( OnionMessageResponse {
369366 message : response,
370367 reply_path : self . reply_path ,
371- path_id : self . path_id ,
372368 } )
373369 }
374370
@@ -379,7 +375,6 @@ impl Responder {
379375 ResponseInstruction :: WithReplyPath ( OnionMessageResponse {
380376 message : response,
381377 reply_path : self . reply_path ,
382- path_id : self . path_id ,
383378 } )
384379 }
385380}
@@ -388,7 +383,6 @@ impl Responder {
388383pub struct OnionMessageResponse < T : OnionMessageContents > {
389384 message : T ,
390385 reply_path : BlindedPath ,
391- path_id : Option < [ u8 ; 32 ] > ,
392386}
393387
394388/// `ResponseInstruction` represents instructions for responding to received messages.
@@ -1272,9 +1266,8 @@ where
12721266 Err ( err) => {
12731267 log_trace ! (
12741268 self . logger,
1275- "Failed to create reply path when responding with {} to an onion message \
1276- with path_id {:02x?}: {:?}",
1277- message_type, response. path_id, err
1269+ "Failed to create reply path when responding with {} to an onion message: {:?}" ,
1270+ message_type, err
12781271 ) ;
12791272 return Err ( err) ;
12801273 }
@@ -1284,9 +1277,8 @@ where
12841277 self . find_path_and_enqueue_onion_message (
12851278 response. message , Destination :: BlindedPath ( response. reply_path ) , reply_path,
12861279 format_args ! (
1287- "when responding with {} to an onion message with path_id {:02x?} " ,
1280+ "when responding with {} to an onion message" ,
12881281 message_type,
1289- response. path_id
12901282 )
12911283 ) . map ( |result| Some ( result) )
12921284 }
@@ -1446,9 +1438,7 @@ where
14461438 "Received an onion message with path_id {:02x?} and {} reply_path: {:?}" ,
14471439 path_id, if reply_path. is_some( ) { "a" } else { "no" } , message) ;
14481440
1449- let responder = reply_path. map (
1450- |reply_path| Responder :: new ( reply_path, path_id)
1451- ) ;
1441+ let responder = reply_path. map ( Responder :: new) ;
14521442 match message {
14531443 ParsedOnionMessageContents :: Offers ( msg) => {
14541444 let response_instructions = self . offers_handler . handle_message ( msg, responder) ;
0 commit comments