Skip to content

Commit 87263d6

Browse files
committed
fixup! Add end-to-end test for HRN resolution
1 parent 6a8212c commit 87263d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/payment/unified.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ impl UnifiedPayment {
338338
/// This is necessary to test sending Bolt12 payments via the unified payment handler in HRN tests,
339339
/// as we cannot rely on the offer being present in the parsed URI.
340340
#[cfg(hrn_tests)]
341-
pub fn set_test_offer(&self, _offer: Offer) {
342-
let _ = self.test_offer.lock()
343-
.map(|mut guard| *guard = Some(_offer))
344-
.map_err(|e| log_error!(self.logger, "Failed to set test offer due to poisoned lock: {:?}", e));
345-
}
341+
pub fn set_test_offer(&self, _offer: Offer) {
342+
let _ = self.test_offer.lock().map(|mut guard| *guard = Some(_offer)).map_err(|e| {
343+
log_error!(self.logger, "Failed to set test offer due to poisoned lock: {:?}", e)
344+
});
345+
}
346346
}
347347

348348
/// Represents the result of a payment made using a [BIP 21] URI or a [BIP 353] Human-Readable Name.

0 commit comments

Comments
 (0)