File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments