From 8cc4936f9a3333337325e45a965c429c1d7ec9f5 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Wed, 7 May 2025 10:16:16 +0300 Subject: [PATCH] remove redundant code --- src/lib.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ad4e1ab..19988a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) { }); } } - -// server start helper -// pub struct Server { -// context: Arc, -// } - -// 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()))), -// } -// } -// }