aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-10-04 17:23:09 +0200
committerfxqnlr <[email protected]>2024-10-04 17:23:09 +0200
commitae386a491b23cfbadc4da8680c8ebcb85310dcb5 (patch)
treec014ad6e437a86910c01fe9b2bbc2548c22db168 /src/main.rs
parent0d5ac9f0ef306faa4e0ad5315fd6368400449d1a (diff)
downloadwebol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar
webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.tar.gz
webol-ae386a491b23cfbadc4da8680c8ebcb85310dcb5.zip
rename `serveraddr` to `addr`
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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<()> {
118 .merge(SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi())) 118 .merge(SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi()))
119 .with_state(Arc::new(shared_state)); 119 .with_state(Arc::new(shared_state));
120 120
121 let addr = config.serveraddr; 121 let addr = config.addr;
122 info!("start server on {}", addr); 122 info!("start server on {}", addr);
123 let listener = tokio::net::TcpListener::bind(addr).await?; 123 let listener = tokio::net::TcpListener::bind(addr).await?;
124 axum::serve(listener, app).await?; 124 axum::serve(listener, app).await?;