Files
Gen_Hack-and-Slash-Roguelite/Server/src/network_service.rs

17 lines
338 B
Rust

mod message_dispatcher;
mod tcp_server;
use tcp_server::TcpServer;
pub(crate) struct NetworkService;
impl NetworkService {
pub(crate) async fn init() {
log::info!("Starting network service...");
tokio::spawn(async { TcpServer::init().await });
log::info!("network service successfully started!");
}
}