remove redundant code

This commit is contained in:
MeexReay 2025-05-07 10:16:16 +03:00
parent b86dd46b36
commit 8cc4936f9a

View File

@ -1,6 +1,5 @@
use std::{error::Error, fmt::Display, net::TcpListener, sync::Arc, thread, time::Duration};
use config::Config;
use context::ServerContext;
use ignore_result::Ignore;
use log::{error, info};
@ -105,32 +104,3 @@ pub fn start_server(server: Arc<ServerContext>) {
});
}
}
// server start helper
// pub struct Server {
// context: Arc<ServerContext>,
// }
// impl Server {
// pub fn new(context: ServerContext) -> Self {
// Self {
// context: Arc::new(context),
// }
// }
// pub fn context(&self) -> &ServerContext {
// &self.context
// }
// pub fn start(&self) {
// start_server(self.context.clone());
// }
// }
// impl Default for Server {
// fn default() -> Self {
// Self {
// context: Arc::new(ServerContext::new(Arc::new(Config::default()))),
// }
// }
// }