Explorar el Código

chore: clean up

Yujia Qiao hace 4 años
padre
commit
cca74fbc2a
Se han modificado 2 ficheros con 1 adiciones y 5 borrados
  1. 1 1
      src/client.rs
  2. 0 4
      src/server.rs

+ 1 - 1
src/client.rs

@@ -370,7 +370,7 @@ impl<T: 'static + Transport> ControlChannel<T> {
         conn.write_all(&bincode::serialize(&hello_send).unwrap())
             .await?;
 
-        // Read hello))
+        // Read hello
         debug!("Reading hello");
         let nonce = match read_hello(&mut conn)
             .await

+ 0 - 4
src/server.rs

@@ -48,7 +48,6 @@ pub async fn run_server(
             }
         };
 
-    //TODO: Maybe use a Box<dyn trait> here to reduce duplicated code
     match config.transport.transport_type {
         TransportType::Tcp => {
             let mut server = Server::<TcpTransport>::from(config).await?;
@@ -86,8 +85,6 @@ struct Server<'a, T: Transport> {
     // `[server]` config
     config: &'a ServerConfig,
 
-    // TODO: Maybe the rwlock is unnecessary.
-    // Keep it until the hot reloading feature is implemented
     // `[server.services]` config, indexed by ServiceDigest
     services: Arc<RwLock<HashMap<ServiceDigest, ServerServiceConfig>>>,
     // Collection of contorl channels
@@ -332,7 +329,6 @@ async fn do_data_channel_handshake<T: 'static + Transport>(
             handle.data_ch_tx.send(conn).await?;
         }
         None => {
-            // TODO: Maybe print IP here
             warn!("Data channel has incorrect nonce");
         }
     }