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));