File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -10277,7 +10277,7 @@ where
10277
10277
}
10278
10278
},
10279
10279
OffersMessage::Invoice(invoice) => {
10280
- let response = invoice
10280
+ let result = invoice
10281
10281
.verify(expanded_key, secp_ctx)
10282
10282
.map_err(|()| InvoiceError::from_string("Unrecognized invoice".to_owned()))
10283
10283
.and_then(|payment_id| {
@@ -10293,16 +10293,15 @@ where
10293
10293
}
10294
10294
});
10295
10295
10296
- match (responder, response) {
10297
- (Some(responder), Err(e)) => responder.respond(OffersMessage::InvoiceError(e)),
10298
- (None, Err(_)) => {
10299
- log_trace!(
10300
- self.logger,
10301
- "A response was generated, but there is no reply_path specified for sending the response."
10302
- );
10303
- ResponseInstruction::NoResponse
10304
- }
10305
- _ => ResponseInstruction::NoResponse,
10296
+ match result {
10297
+ Ok(()) => ResponseInstruction::NoResponse,
10298
+ Err(e) => match responder {
10299
+ Some(responder) => responder.respond(OffersMessage::InvoiceError(e)),
10300
+ None => {
10301
+ log_trace!(self.logger, "No reply path for sending invoice error: {:?}", e);
10302
+ ResponseInstruction::NoResponse
10303
+ },
10304
+ },
10306
10305
}
10307
10306
},
10308
10307
OffersMessage::InvoiceError(invoice_error) => {
You can’t perform that action at this time.
0 commit comments