From ae386a491b23cfbadc4da8680c8ebcb85310dcb5 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 4 Oct 2024 17:23:09 +0200 Subject: rename `serveraddr` to `addr` --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index b550dd8..352023b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,7 +118,7 @@ async fn main() -> color_eyre::eyre::Result<()> { .merge(SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi())) .with_state(Arc::new(shared_state)); - let addr = config.serveraddr; + let addr = config.addr; info!("start server on {}", addr); let listener = tokio::net::TcpListener::bind(addr).await?; axum::serve(listener, app).await?; -- cgit v1.2.3