Skip to content

Commit 61b062f

Browse files
committed
Remove unused part of return type
1 parent d2022c4 commit 61b062f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channel.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6889,7 +6889,7 @@ impl<SP: Deref> FundedChannel<SP> where
68896889
log_trace!(logger, "Regenerating latest commitment update in channel {} with{} {} update_adds, {} update_fulfills, {} update_fails, and {} update_fail_malformeds",
68906890
&self.context.channel_id(), if update_fee.is_some() { " update_fee," } else { "" },
68916891
update_add_htlcs.len(), update_fulfill_htlcs.len(), update_fail_htlcs.len(), update_fail_malformed_htlcs.len());
6892-
let commitment_signed = if let Ok(update) = self.send_commitment_no_state_update(logger).map(|(cu, _)| cu) {
6892+
let commitment_signed = if let Ok(update) = self.send_commitment_no_state_update(logger) {
68936893
if self.context.signer_pending_commitment_update {
68946894
log_trace!(logger, "Commitment update generated: clearing signer_pending_commitment_update");
68956895
self.context.signer_pending_commitment_update = false;
@@ -8669,7 +8669,7 @@ impl<SP: Deref> FundedChannel<SP> where
86698669

86708670
/// Only fails in case of signer rejection. Used for channel_reestablish commitment_signed
86718671
/// generation when we shouldn't change HTLC/channel state.
8672-
fn send_commitment_no_state_update<L: Deref>(&self, logger: &L) -> Result<(msgs::CommitmentSigned, (Txid, Vec<(HTLCOutputInCommitment, Option<&HTLCSource>)>)), ChannelError> where L::Target: Logger {
8672+
fn send_commitment_no_state_update<L: Deref>(&self, logger: &L) -> Result<msgs::CommitmentSigned, ChannelError> where L::Target: Logger {
86738673
// Get the fee tests from `build_commitment_no_state_update`
86748674
#[cfg(any(test, fuzzing))]
86758675
self.build_commitment_no_state_update(logger);
@@ -8712,14 +8712,14 @@ impl<SP: Deref> FundedChannel<SP> where
87128712
}
87138713
}
87148714

8715-
Ok((msgs::CommitmentSigned {
8715+
Ok(msgs::CommitmentSigned {
87168716
channel_id: self.context.channel_id,
87178717
signature,
87188718
htlc_signatures,
87198719
batch: None,
87208720
#[cfg(taproot)]
87218721
partial_signature_with_nonce: None,
8722-
}, (counterparty_commitment_txid, commitment_stats.htlcs_included)))
8722+
})
87238723
},
87248724
// TODO (taproot|arik)
87258725
#[cfg(taproot)]

0 commit comments

Comments
 (0)