@@ -3951,8 +3951,8 @@ where
39513951 .lock().unwrap();
39523952 let peer_state = &mut *peer_state_lock;
39533953 match peer_state.channel_by_id.entry(channel_id) {
3954- hash_map::Entry::Occupied(mut chan_phase ) => {
3955- if let Some(chan) = chan_phase .get_mut().as_funded_mut() {
3954+ hash_map::Entry::Occupied(mut chan_entry ) => {
3955+ if let Some(chan) = chan_entry .get_mut().as_funded_mut() {
39563956 handle_new_monitor_update!(self, funding_txo,
39573957 monitor_update, peer_state_lock, peer_state, per_peer_state, chan);
39583958 return;
@@ -4102,11 +4102,11 @@ where
41024102 (chan_entry.get_mut().context_mut().force_shutdown(false, closure_reason), None)
41034103 },
41044104 };
4105- let chan_phase = remove_channel_entry!(self, peer_state, chan_entry, shutdown_res);
4105+ let chan = remove_channel_entry!(self, peer_state, chan_entry, shutdown_res);
41064106 mem::drop(peer_state);
41074107 mem::drop(per_peer_state);
41084108 self.finish_close_channel(shutdown_res);
4109- (update_opt, chan_phase .context().get_counterparty_node_id())
4109+ (update_opt, chan .context().get_counterparty_node_id())
41104110 } else if peer_state.inbound_channel_request_by_id.remove(channel_id).is_some() {
41114111 log_error!(logger, "Force-closing channel {}", &channel_id);
41124112 // N.B. that we don't send any channel close event here: we
@@ -9347,9 +9347,9 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
93479347 ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(true) }
93489348 };
93499349 let mut shutdown_res = chan_entry.get_mut().context_mut().force_shutdown(false, reason.clone());
9350- let chan_phase = remove_channel_entry!(self, peer_state, chan_entry, shutdown_res);
9350+ let chan = remove_channel_entry!(self, peer_state, chan_entry, shutdown_res);
93519351 failed_channels.push(shutdown_res);
9352- if let Some(chan) = chan_phase .as_funded() {
9352+ if let Some(chan) = chan .as_funded() {
93539353 if let Ok(update) = self.get_channel_update_for_broadcast(chan) {
93549354 let mut pending_broadcast_messages = self.pending_broadcast_messages.lock().unwrap();
93559355 pending_broadcast_messages.push(events::MessageSendEvent::BroadcastChannelUpdate {
0 commit comments