Skip to content

Commit 482b28a

Browse files
committed
Remove unused part of return type
1 parent 5031414 commit 482b28a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6913,7 +6913,7 @@ impl<SP: Deref> FundedChannel<SP> where
69136913
log_trace!(logger, "Regenerating latest commitment update in channel {} with{} {} update_adds, {} update_fulfills, {} update_fails, and {} update_fail_malformeds",
69146914
&self.context.channel_id(), if update_fee.is_some() { " update_fee," } else { "" },
69156915
update_add_htlcs.len(), update_fulfill_htlcs.len(), update_fail_htlcs.len(), update_fail_malformed_htlcs.len());
6916-
let commitment_signed = if let Ok(update) = self.send_commitment_no_state_update(logger).map(|(cu, _)| cu) {
6916+
let commitment_signed = if let Ok(update) = self.send_commitment_no_state_update(logger) {
69176917
if self.context.signer_pending_commitment_update {
69186918
log_trace!(logger, "Commitment update generated: clearing signer_pending_commitment_update");
69196919
self.context.signer_pending_commitment_update = false;
@@ -8702,7 +8702,7 @@ impl<SP: Deref> FundedChannel<SP> where
87028702

87038703
/// Only fails in case of signer rejection. Used for channel_reestablish commitment_signed
87048704
/// generation when we shouldn't change HTLC/channel state.
8705-
fn send_commitment_no_state_update<L: Deref>(&self, logger: &L) -> Result<(msgs::CommitmentSigned, (Txid, Vec<(HTLCOutputInCommitment, Option<&HTLCSource>)>)), ChannelError> where L::Target: Logger {
8705+
fn send_commitment_no_state_update<L: Deref>(&self, logger: &L) -> Result<msgs::CommitmentSigned, ChannelError> where L::Target: Logger {
87068706
// Get the fee tests from `build_commitment_no_state_update`
87078707
#[cfg(any(test, fuzzing))]
87088708
self.build_commitment_no_state_update(logger);
@@ -8745,14 +8745,14 @@ impl<SP: Deref> FundedChannel<SP> where
87458745
}
87468746
}
87478747

8748-
Ok((msgs::CommitmentSigned {
8748+
Ok(msgs::CommitmentSigned {
87498749
channel_id: self.context.channel_id,
87508750
signature,
87518751
htlc_signatures,
87528752
batch: None,
87538753
#[cfg(taproot)]
87548754
partial_signature_with_nonce: None,
8755-
}, (counterparty_commitment_txid, commitment_stats.htlcs_included)))
8755+
})
87568756
},
87578757
// TODO (taproot|arik)
87588758
#[cfg(taproot)]

0 commit comments

Comments
 (0)