Skip to content

Commit 595e5a3

Browse files
committed
Rename remove_channel_phase
Now that ChannelPhase has been renamed, drop phase from related identifiers.
1 parent de93337 commit 595e5a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ macro_rules! try_channel_entry {
30743074
}
30753075
}
30763076

3077-
macro_rules! remove_channel_phase {
3077+
macro_rules! remove_channel_entry {
30783078
($self: ident, $peer_state: expr, $entry: expr, $shutdown_res_mut: expr) => {
30793079
{
30803080
let channel = $entry.remove_entry().1;
@@ -3850,7 +3850,7 @@ where
38503850
} else {
38513851
let mut shutdown_res = chan_phase_entry.get_mut().context_mut()
38523852
.force_shutdown(false, ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) });
3853-
remove_channel_phase!(self, peer_state, chan_phase_entry, shutdown_res);
3853+
remove_channel_entry!(self, peer_state, chan_phase_entry, shutdown_res);
38543854
shutdown_result = Some(shutdown_res);
38553855
}
38563856
},
@@ -4102,7 +4102,7 @@ where
41024102
(chan_phase_entry.get_mut().context_mut().force_shutdown(false, closure_reason), None)
41034103
},
41044104
};
4105-
let chan_phase = remove_channel_phase!(self, peer_state, chan_phase_entry, shutdown_res);
4105+
let chan_phase = remove_channel_entry!(self, peer_state, chan_phase_entry, shutdown_res);
41064106
mem::drop(peer_state);
41074107
mem::drop(per_peer_state);
41084108
self.finish_close_channel(shutdown_res);
@@ -8563,7 +8563,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
85638563
let logger = WithChannelContext::from(&self.logger, context, None);
85648564
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
85658565
let mut close_res = context.force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel);
8566-
remove_channel_phase!(self, peer_state, chan_phase_entry, close_res);
8566+
remove_channel_entry!(self, peer_state, chan_phase_entry, close_res);
85678567
finish_shutdown = Some(close_res);
85688568
},
85698569
}
@@ -8612,7 +8612,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
86128612
// fully delete it from tracking (the channel monitor is still around to
86138613
// watch for old state broadcasts)!
86148614
debug_assert!(tx.is_some());
8615-
let channel_phase = remove_channel_phase!(self, peer_state, chan_phase_entry, close_res);
8615+
let channel_phase = remove_channel_entry!(self, peer_state, chan_phase_entry, close_res);
86168616
(tx, Some(channel_phase), Some(close_res))
86178617
} else {
86188618
debug_assert!(tx.is_none());
@@ -9347,7 +9347,7 @@ 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_phase_entry.get_mut().context_mut().force_shutdown(false, reason.clone());
9350-
let chan_phase = remove_channel_phase!(self, peer_state, chan_phase_entry, shutdown_res);
9350+
let chan_phase = remove_channel_entry!(self, peer_state, chan_phase_entry, shutdown_res);
93519351
failed_channels.push(shutdown_res);
93529352
if let Some(chan) = chan_phase.as_funded() {
93539353
if let Ok(update) = self.get_channel_update_for_broadcast(chan) {

0 commit comments

Comments
 (0)