Skip to content

Commit 6765d61

Browse files
committed
Don't inline call to FundedChannel::splice_locked
This will help make the code more compact when using rustfmt.
1 parent 9ea70be commit 6765d61

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10155,12 +10155,11 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1015510155
hash_map::Entry::Occupied(mut chan_entry) => {
1015610156
if let Some(chan) = chan_entry.get_mut().as_funded_mut() {
1015710157
let logger = WithChannelContext::from(&self.logger, &chan.context, None);
10158-
let announcement_sigs_opt = try_channel_entry!(
10159-
self, peer_state, chan.splice_locked(
10160-
msg, &self.node_signer, self.chain_hash, &self.default_configuration,
10161-
&self.best_block.read().unwrap(), &&logger,
10162-
), chan_entry
10158+
let result = chan.splice_locked(
10159+
msg, &self.node_signer, self.chain_hash, &self.default_configuration,
10160+
&self.best_block.read().unwrap(), &&logger,
1016310161
);
10162+
let announcement_sigs_opt = try_channel_entry!(self, peer_state, result, chan_entry);
1016410163

1016510164
if !chan.has_pending_splice() {
1016610165
let mut short_to_chan_info = self.short_to_chan_info.write().unwrap();

0 commit comments

Comments
 (0)