mirror of https://github.com/rapiz1/rathole.git
chore: clean up
This commit is contained in:
parent
9f8a324d35
commit
cca74fbc2a
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue