From 78c1404ce817f5ea9088b2ea11fed74a7c803447 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Tue, 6 May 2025 16:24:28 +0300 Subject: [PATCH] remove server start helper --- src/lib.rs | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7e0754f..ad4e1ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,30 +107,30 @@ pub fn start_server(server: Arc) { } // server start helper -pub struct Server { - context: Arc, -} +// pub struct Server { +// context: Arc, +// } -impl Server { - pub fn new(context: ServerContext) -> Self { - Self { - context: Arc::new(context), - } - } +// impl Server { +// pub fn new(context: ServerContext) -> Self { +// Self { +// context: Arc::new(context), +// } +// } - pub fn context(&self) -> &ServerContext { - &self.context - } +// pub fn context(&self) -> &ServerContext { +// &self.context +// } - pub fn start(&self) { - start_server(self.context.clone()); - } -} +// 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()))), - } - } -} +// impl Default for Server { +// fn default() -> Self { +// Self { +// context: Arc::new(ServerContext::new(Arc::new(Config::default()))), +// } +// } +// }