]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix cfg(test) indentation
authorValentine Wallace <vwallace@protonmail.com>
Tue, 20 Dec 2022 23:19:22 +0000 (18:19 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 21 Dec 2022 02:23:54 +0000 (21:23 -0500)
lightning/src/ln/outbound_payment.rs

index 08aeae5c58bce3bc9e1c355482f9b01d370da98f..6da14388ad8ae2c7b65a7244a8e324422ede393e 100644 (file)
@@ -720,9 +720,9 @@ impl OutboundPayments {
                log_trace!(logger, "Failing outbound payment HTLC with payment_hash {}", log_bytes!(payment_hash.0));
 
                let path_failure = {
-       #[cfg(test)]
+                       #[cfg(test)]
                        let (network_update, short_channel_id, payment_retryable, onion_error_code, onion_error_data) = onion_error.decode_onion_failure(secp_ctx, logger, &source);
-       #[cfg(not(test))]
+                       #[cfg(not(test))]
                        let (network_update, short_channel_id, payment_retryable, _, _) = onion_error.decode_onion_failure(secp_ctx, logger, &source);
 
                        if payment_is_probe(payment_hash, &payment_id, probing_cookie_secret) {