diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-19 17:01:36 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-19 17:01:36 +0000 |
| commit | bf7f4d5381203d5c27b2811d62c5b1781533aa2b (patch) | |
| tree | 26903bbf535d83abd7242370d8b6932eb80e3389 /src/http/mod.rs | |
| parent | fa065ad128882755f2a988d6203b59a2ab5e38ff (diff) | |
fix some clippy fmt warnings
Diffstat (limited to 'src/http/mod.rs')
| -rw-r--r-- | src/http/mod.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs index 286e8ff..b434c69 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | /// HTTP Server Module | 1 | /// HTTP Server Module |
| 2 | /// | 2 | /// |
| 3 | /// Provides actix-web HTTP server with WebSocket upgrade support for the Nostr relay. | 3 | /// Provides actix-web HTTP server with WebSocket upgrade support for the Nostr relay. |
| 4 | |||
| 5 | pub mod landing; | 4 | pub mod landing; |
| 6 | pub mod websocket; | 5 | pub mod websocket; |
| 7 | 6 | ||
| @@ -13,9 +12,9 @@ use crate::config::Config; | |||
| 13 | /// Start the HTTP server with integrated Nostr relay | 12 | /// Start the HTTP server with integrated Nostr relay |
| 14 | pub async fn run_server(config: Config, relay: LocalRelay) -> anyhow::Result<()> { | 13 | pub async fn run_server(config: Config, relay: LocalRelay) -> anyhow::Result<()> { |
| 15 | let bind_addr = config.bind_address.clone(); | 14 | let bind_addr = config.bind_address.clone(); |
| 16 | 15 | ||
| 17 | tracing::info!("Starting HTTP server on {}", bind_addr); | 16 | tracing::info!("Starting HTTP server on {}", bind_addr); |
| 18 | 17 | ||
| 19 | HttpServer::new(move || { | 18 | HttpServer::new(move || { |
| 20 | App::new() | 19 | App::new() |
| 21 | .app_data(web::Data::new(config.clone())) | 20 | .app_data(web::Data::new(config.clone())) |
| @@ -26,6 +25,6 @@ pub async fn run_server(config: Config, relay: LocalRelay) -> anyhow::Result<()> | |||
| 26 | .bind(&bind_addr)? | 25 | .bind(&bind_addr)? |
| 27 | .run() | 26 | .run() |
| 28 | .await?; | 27 | .await?; |
| 29 | 28 | ||
| 30 | Ok(()) | 29 | Ok(()) |
| 31 | } \ No newline at end of file | 30 | } |