Parcourir la source

specified that 'exists' function refers to connected channels

rachel-rose il y a 5 ans
Parent
commit
e82496d3fb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)
     }