Skip to content

Commit c37b1cd

Browse files
committed
Remove redundant variable
1 parent ad462bd commit c37b1cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6512,12 +6512,11 @@ where
65126512
phase.context_mut().maybe_expire_prev_config();
65136513
let unfunded_context = phase.unfunded_context_mut().expect("channel should be unfunded");
65146514
if unfunded_context.should_expire_unfunded_channel() {
6515-
let context = phase.context();
6515+
let context = phase.context_mut();
65166516
let logger = WithChannelContext::from(&self.logger, context, None);
65176517
log_error!(logger,
65186518
"Force-closing pending channel with ID {} for not establishing in a timely manner",
65196519
context.channel_id());
6520-
let context = phase.context_mut();
65216520
let mut close_res = context.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
65226521
locked_close_channel!(self, peer_state, context, close_res);
65236522
shutdown_channels.push(close_res);

0 commit comments

Comments
 (0)