@@ -949,28 +949,25 @@ impl OutboundPayments {
949
949
} ;
950
950
951
951
let payment_params = Some ( route_params. payment_params . clone ( ) ) ;
952
- macro_rules! create_pending_payment {
953
- ( $invreq_opt: expr) => {
954
- Self :: create_pending_payment(
955
- payment_hash, recipient_onion. clone( ) , keysend_preimage, $invreq_opt, & route,
956
- Some ( retry_strategy) , payment_params, entropy_source, best_block_height
957
- )
958
- }
959
- }
960
-
961
952
let mut outbounds = self . pending_outbound_payments . lock ( ) . unwrap ( ) ;
962
953
let onion_session_privs = match outbounds. entry ( payment_id) {
963
954
hash_map:: Entry :: Occupied ( entry) => match entry. get ( ) {
964
955
PendingOutboundPayment :: InvoiceReceived { .. } => {
965
- let ( retryable_payment, onion_session_privs) = create_pending_payment ! ( None ) ;
956
+ let ( retryable_payment, onion_session_privs) = Self :: create_pending_payment (
957
+ payment_hash, recipient_onion. clone ( ) , keysend_preimage, None , & route,
958
+ Some ( retry_strategy) , payment_params, entropy_source, best_block_height
959
+ ) ;
966
960
* entry. into_mut ( ) = retryable_payment;
967
961
onion_session_privs
968
962
} ,
969
963
PendingOutboundPayment :: StaticInvoiceReceived { .. } => {
970
964
let invreq = if let PendingOutboundPayment :: StaticInvoiceReceived { invoice_request, .. } = entry. remove ( ) {
971
965
invoice_request
972
966
} else { unreachable ! ( ) } ;
973
- let ( retryable_payment, onion_session_privs) = create_pending_payment ! ( Some ( invreq) ) ;
967
+ let ( retryable_payment, onion_session_privs) = Self :: create_pending_payment (
968
+ payment_hash, recipient_onion. clone ( ) , keysend_preimage, Some ( invreq) , & route,
969
+ Some ( retry_strategy) , payment_params, entropy_source, best_block_height
970
+ ) ;
974
971
outbounds. insert ( payment_id, retryable_payment) ;
975
972
onion_session_privs
976
973
} ,
0 commit comments