Skip to content

Commit 695c612

Browse files
committed
Remove redundant variable
1 parent 0454d45 commit 695c612

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
@@ -6513,12 +6513,11 @@ where
65136513
chan.context_mut().maybe_expire_prev_config();
65146514
let unfunded_context = chan.unfunded_context_mut().expect("channel should be unfunded");
65156515
if unfunded_context.should_expire_unfunded_channel() {
6516-
let context = chan.context();
6516+
let context = chan.context_mut();
65176517
let logger = WithChannelContext::from(&self.logger, context, None);
65186518
log_error!(logger,
65196519
"Force-closing pending channel with ID {} for not establishing in a timely manner",
65206520
context.channel_id());
6521-
let context = chan.context_mut();
65226521
let mut close_res = context.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
65236522
locked_close_channel!(self, peer_state, context, close_res);
65246523
shutdown_channels.push(close_res);

0 commit comments

Comments
 (0)