Skip to content

Commit 23b3d65

Browse files
TheBlueMattadi2011
authored andcommitted
Remove redundant variable
1 parent 8d8b4ea commit 23b3d65

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
@@ -6540,12 +6540,11 @@ where
65406540
chan.context_mut().maybe_expire_prev_config();
65416541
let unfunded_context = chan.unfunded_context_mut().expect("channel should be unfunded");
65426542
if unfunded_context.should_expire_unfunded_channel() {
6543-
let context = chan.context();
6543+
let context = chan.context_mut();
65446544
let logger = WithChannelContext::from(&self.logger, context, None);
65456545
log_error!(logger,
65466546
"Force-closing pending channel with ID {} for not establishing in a timely manner",
65476547
context.channel_id());
6548-
let context = chan.context_mut();
65496548
let mut close_res = context.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
65506549
locked_close_channel!(self, peer_state, context, close_res);
65516550
shutdown_channels.push(close_res);

0 commit comments

Comments
 (0)