upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/http/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-19 17:01:36 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-19 17:01:36 +0000
commitbf7f4d5381203d5c27b2811d62c5b1781533aa2b (patch)
tree26903bbf535d83abd7242370d8b6932eb80e3389 /src/http/mod.rs
parentfa065ad128882755f2a988d6203b59a2ab5e38ff (diff)
fix some clippy fmt warnings
Diffstat (limited to 'src/http/mod.rs')
-rw-r--r--src/http/mod.rs11
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
5pub mod landing; 4pub mod landing;
6pub mod websocket; 5pub 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
14pub async fn run_server(config: Config, relay: LocalRelay) -> anyhow::Result<()> { 13pub 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}