Skip to content

Commit 454705a

Browse files
committed
Clean up typos and unused variables/imports
1 parent 3e1e393 commit 454705a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ where
26922692
}
26932693

26942694
let (monitor_update_option, mut failed_htlcs, unbroadcasted_batch_funding_txid) = shutdown_res;
2695-
log_debug!(self.logger, "Finishing force-closure of channel with {} HTLCs to fail", failed_htlcs.len());
2695+
log_debug!(self.logger, "Finishing closure of channel with {} HTLCs to fail", failed_htlcs.len());
26962696
for htlc_source in failed_htlcs.drain(..) {
26972697
let (source, payment_hash, counterparty_node_id, channel_id) = htlc_source;
26982698
let reason = HTLCFailReason::from_failure_code(0x4000 | 8);
@@ -3841,7 +3841,7 @@ where
38413841
/// Return values are identical to [`Self::funding_transaction_generated`], respective to
38423842
/// each individual channel and transaction output.
38433843
///
3844-
/// Do NOT broadcast the funding transaction yourself. This batch funding transcaction
3844+
/// Do NOT broadcast the funding transaction yourself. This batch funding transaction
38453845
/// will only be broadcast when we have safely received and persisted the counterparty's
38463846
/// signature for each channel.
38473847
///
@@ -3895,7 +3895,7 @@ where
38953895
btree_map::Entry::Vacant(vacant) => Some(vacant.insert(Vec::new())),
38963896
}
38973897
});
3898-
for (channel_idx, &(temporary_channel_id, counterparty_node_id)) in temporary_channels.iter().enumerate() {
3898+
for &(temporary_channel_id, counterparty_node_id) in temporary_channels {
38993899
result = result.and_then(|_| self.funding_transaction_generated_intern(
39003900
temporary_channel_id,
39013901
counterparty_node_id,

lightning/src/ln/reload_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::util::ser::{Writeable, ReadableArgs};
2525
use crate::util::config::UserConfig;
2626
use crate::util::string::UntrustedString;
2727

28-
use bitcoin::{PackedLockTime, Transaction, TxOut};
2928
use bitcoin::hash_types::BlockHash;
3029

3130
use crate::prelude::*;

0 commit comments

Comments
 (0)