Skip to content

Commit d35b63c

Browse files
f nits
1 parent c1d4316 commit d35b63c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3096,7 +3096,7 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
30963096
}
30973097

30983098
/// Fails the intercepted HTLC indicated by intercept_id. Should only be called in response to
3099-
/// a [`HTLCIntercepted`] event. See [`ChannelManager::forward_intercepted_htlc`].
3099+
/// an [`HTLCIntercepted`] event. See [`ChannelManager::forward_intercepted_htlc`].
31003100
///
31013101
/// [`HTLCIntercepted`]: events::Event::HTLCIntercepted
31023102
pub fn fail_intercepted_htlc(&self, intercept_id: InterceptId) -> Result<(), APIError> {

lightning/src/ln/payment_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,11 +1467,11 @@ fn do_test_intercepted_payment(fail_intercept: bool) {
14671467
commitment_signed_dance!(nodes[0], nodes[1], update_fail.commitment_signed, false);
14681468

14691469
// Ensure the payment fails with the expected error.
1470-
let mut fail_conditions = PaymentFailedConditions::new()
1470+
let fail_conditions = PaymentFailedConditions::new()
14711471
.blamed_scid(intercept_scid)
14721472
.blamed_chan_closed(true)
14731473
.expected_htlc_error_data(0x4000 | 10, &[]);
1474-
expect_payment_failed_conditions(&nodes[0], payment_hash, false, fail_conditions);
1474+
expect_payment_failed_conditions(&nodes[0], payment_hash, false, fail_conditions);
14751475
} else {
14761476
// Open the just-in-time channel so the payment can then be forwarded.
14771477
let (_, channel_id) = open_zero_conf_channel(&nodes[1], &nodes[2], None);

0 commit comments

Comments
 (0)