Skip to content

Commit f969eaa

Browse files
committed
Replace macro with direct call to convert_unfunded_channel_err_internal
1 parent ba2114e commit f969eaa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,9 +3611,6 @@ fn convert_channel_err_internal<
36113611
/// true).
36123612
#[rustfmt::skip]
36133613
macro_rules! convert_channel_err {
3614-
($self: ident, $peer_state: expr, $err: expr, $channel: expr, UNFUNDED_CHANNEL) => { {
3615-
$self.convert_unfunded_channel_err_internal($err, $channel)
3616-
} };
36173614
($self: ident, $peer_state: expr, $err: expr, $channel: expr) => {
36183615
match $channel.as_funded_mut() {
36193616
Some(funded_channel) => {
@@ -10506,7 +10503,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1050610503
let err = ChannelError::close($err.to_owned());
1050710504
chan.unset_funding_info();
1050810505
let mut chan = Channel::from(chan);
10509-
return Err(convert_channel_err!(self, peer_state, err, &mut chan, UNFUNDED_CHANNEL).1);
10506+
return Err(self.convert_unfunded_channel_err_internal(err, &mut chan).1);
1051010507
} } }
1051110508

1051210509
match peer_state.channel_by_id.entry(funded_channel_id) {
@@ -12506,7 +12503,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1250612503
debug_assert!(false);
1250712504
let reason = shutdown.closure_reason.clone();
1250812505
let err = ChannelError::Close((reason.to_string(), reason));
12509-
convert_channel_err!(self, peer_state, err, chan, UNFUNDED_CHANNEL)
12506+
self.convert_unfunded_channel_err_internal(err, chan)
1251012507
};
1251112508
debug_assert!(remove);
1251212509
shutdown_results.push((Err(err), *cp_id));

0 commit comments

Comments
 (0)