Parcourir la source

net/hosts: Add TODO on addrs type.

parazyd il y a 4 ans
Parent
commit
f6d36a15e1
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/net/hosts.rs

+ 1 - 0
src/net/hosts.rs

@@ -8,6 +8,7 @@ pub type HostsPtr = Arc<Hosts>;
 
 /// Manages a store of network addresses.
 pub struct Hosts {
+    // TODO: This should be a rwlock
     addrs: Mutex<Vec<SocketAddr>>,
 }