refactor: migrate net operation to KCP
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#![feature(let_chains)]
|
||||
use anyhow::Result;
|
||||
|
||||
mod logging;
|
||||
@@ -6,11 +7,11 @@ mod tools;
|
||||
mod util;
|
||||
|
||||
use logging::init_tracing;
|
||||
use net::gateway::Gateway;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
init_tracing();
|
||||
net::gateway::listen("0.0.0.0", 23301).await?;
|
||||
|
||||
Ok(())
|
||||
let mut gateway = Gateway::new("0.0.0.0", 23301).await?;
|
||||
Box::pin(gateway.listen()).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user