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

specified that 'exists' function refers to connected channels

rachel-rose 5 лет назад
Родитель
Сommit
e82496d3fb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/net/p2p.rs

+ 1 - 1
src/net/p2p.rs

@@ -101,7 +101,7 @@ impl P2p {
         self.channels.lock().await.remove(&channel.address());
         self.channels.lock().await.remove(&channel.address());
     }
     }
 
 
-    /// Check whether a channel is stored in the list of channels.
+    /// Check whether a channel is stored in the list of connected channels.
     pub async fn exists(&self, addr: &SocketAddr) -> bool {
     pub async fn exists(&self, addr: &SocketAddr) -> bool {
         self.channels.lock().await.contains_key(addr)
         self.channels.lock().await.contains_key(addr)
     }
     }