Skip to content

Commit 9f5b70e

Browse files
committed
f move comment
1 parent be0e753 commit 9f5b70e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/ln/channelmanager.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -8940,14 +8940,15 @@ where
89408940
Some((blocked_node_id, blocked_channel_outpoint, blocking_action)), ..
89418941
} = action {
89428942
if let Some(blocked_peer_state) = per_peer_state.get(&blocked_node_id) {
8943+
blocked_peer_state.lock().unwrap().actions_blocking_raa_monitor_updates
8944+
.entry(blocked_channel_outpoint.to_channel_id())
8945+
.or_insert_with(Vec::new).push(blocking_action.clone());
8946+
} else {
89438947
// If the channel we were blocking has closed, we don't need to
89448948
// worry about it - the blocked monitor update should never have
89458949
// been released from the `Channel` object so it can't have
89468950
// completed, and if the channel closed there's no reason to bother
89478951
// anymore.
8948-
blocked_peer_state.lock().unwrap().actions_blocking_raa_monitor_updates
8949-
.entry(blocked_channel_outpoint.to_channel_id())
8950-
.or_insert_with(Vec::new).push(blocking_action.clone());
89518952
}
89528953
}
89538954
}

0 commit comments

Comments
 (0)