]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build broken by silent merge conflicts
authorMatt Corallo <git@bluematt.me>
Fri, 15 Nov 2019 22:19:26 +0000 (17:19 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Nov 2019 22:20:03 +0000 (17:20 -0500)
src/ln/channelmanager.rs

index a0e066371cb4c06fb686a4659bffe8f586329482..fad5b30b3a5648b680c441a22099515028db1398 100644 (file)
@@ -1393,14 +1393,16 @@ impl ChannelManager {
                                                                        match handle_error!(self, err) {
                                                                                Ok(_) => unreachable!(),
                                                                                Err(e) => {
-                                                                                       if let Some(msgs::ErrorAction::IgnoreError) = e.action {
-                                                                                       } else {
-                                                                                               log_error!(self, "Got bad keys: {}!", e.err);
-                                                                                               let mut channel_state = self.channel_state.lock().unwrap();
-                                                                                               channel_state.pending_msg_events.push(events::MessageSendEvent::HandleError {
-                                                                                                       node_id: their_node_id,
-                                                                                                       action: e.action,
-                                                                                               });
+                                                                                       match e.action {
+                                                                                               msgs::ErrorAction::IgnoreError => {},
+                                                                                               _ => {
+                                                                                                       log_error!(self, "Got bad keys: {}!", e.err);
+                                                                                                       let mut channel_state = self.channel_state.lock().unwrap();
+                                                                                                       channel_state.pending_msg_events.push(events::MessageSendEvent::HandleError {
+                                                                                                               node_id: their_node_id,
+                                                                                                               action: e.action,
+                                                                                                       });
+                                                                                               },
                                                                                        }
                                                                                        continue;
                                                                                },