We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743e6e1 commit e47fc06Copy full SHA for e47fc06
lightning/src/ln/channelmanager.rs
@@ -1266,10 +1266,7 @@ macro_rules! handle_error {
1266
macro_rules! update_maps_on_chan_removal {
1267
($self: expr, $channel: expr) => {
1268
{
1269
- let mut id_to_peer = $self.id_to_peer.lock().unwrap();
1270
- id_to_peer.remove(&$channel.channel_id());
1271
- }
1272
- {
+ $self.id_to_peer.lock().unwrap().remove(&$channel.channel_id());
1273
let mut short_to_chan_info = $self.short_to_chan_info.write().unwrap();
1274
if let Some(short_id) = $channel.get_short_channel_id() {
1275
short_to_chan_info.remove(&short_id);
0 commit comments