Просмотр исходного кода

Revert "chore: make clippy"

This reverts commit e55ae297f7f3e4e6d0eafea6a719702dc486c91a.
darkfi 1 год назад
Родитель
Сommit
e9eef08ee2
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      src/net/session/inbound_session.rs

+ 8 - 5
src/net/session/inbound_session.rs

@@ -184,11 +184,14 @@ impl InboundSession {
             channel_id: channel.info.id,
         });
 
-        if let Err(e) = self.register_channel(channel.clone(), ex.clone()).await {
-            warn!(
-                target: "net::inbound_session::setup_channel()",
-                "Channel setup failed! Err={}", e
-            );
+        match self.register_channel(channel.clone(), ex.clone()).await {
+            Ok(()) => {}
+            Err(e) => {
+                warn!(
+                    target: "net::inbound_session::setup_channel()",
+                    "Channel setup failed! Err={}", e
+                );
+            }
         }
 
         dnetev!(self, InboundDisconnected, {