Skip to content

Commit 00087f1

Browse files
committed
f clean up variable definition
1 parent b1000bc commit 00087f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/channelmanager.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2905,8 +2905,6 @@ macro_rules! handle_error {
29052905
/// [`ChannelMonitor`]/channel funding transaction) to begin with.
29062906
macro_rules! update_maps_on_chan_removal {
29072907
($self: expr, $peer_state: expr, $channel_context: expr) => {{
2908-
let chan_id = $channel_context.channel_id();
2909-
29102908
// If there's a possibility that we need to generate further monitor updates for this
29112909
// channel, we need to store the last update_id of it. However, we don't want to insert
29122910
// into the map (which prevents the `PeerState` from being cleaned up) for channels that
@@ -2930,6 +2928,7 @@ macro_rules! update_maps_on_chan_removal {
29302928
BackgroundEvent::MonitorUpdatesComplete { .. } => {},
29312929
}
29322930
}
2931+
let chan_id = $channel_context.channel_id();
29332932
$peer_state.closed_channel_monitor_update_ids.insert(chan_id, update_id);
29342933
}
29352934
if let Some(outpoint) = $channel_context.get_funding_txo() {

0 commit comments

Comments
 (0)