Ver Fonte

specified that 'exists' function refers to connected channels

rachel-rose há 5 anos atrás
pai
commit
e82496d3fb
1 ficheiros alterados com 1 adições e 1 exclusões
  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());
     }
 
-    /// 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 {
         self.channels.lock().await.contains_key(addr)
     }