From ce7a0ceb420dba1107a64fd7685108090cb6d058 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Mon, 7 Apr 2025 01:52:31 +0300 Subject: [PATCH] methods signatures shorten --- src/flowgate/server.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/flowgate/server.rs b/src/flowgate/server.rs index 579d1e3..fa18973 100755 --- a/src/flowgate/server.rs +++ b/src/flowgate/server.rs @@ -53,9 +53,7 @@ impl FlowgateServer { }); } - pub async fn run_http( - self: Arc - ) -> Result<(), Box> { + pub async fn run_http(self: Arc) -> Result<(), Box> { let listener = TcpListener::bind(&self.config.http_host).await?; info!("HTTP server runned on {}", &self.config.http_host); @@ -84,9 +82,7 @@ impl FlowgateServer { Ok(()) } - pub async fn run_https( - self: Arc - ) -> Result<(), Box> { + pub async fn run_https(self: Arc) -> Result<(), Box> { let listener = TcpListener::bind(&self.config.https_host).await?; let acceptor = TlsAcceptor::from(Arc::new(create_server_config(self.config.clone()).await));