From 810a34463cf48f9045d522c6148f6c4d3a20eff8 Mon Sep 17 00:00:00 2001 From: _ <> Date: Thu, 29 Apr 2021 23:03:01 +0000 Subject: [PATCH] :recycle: refactor: get rid of mod.rs --- crates/ptth_relay/src/lib.rs | 4 ++-- crates/ptth_relay/src/server_endpoint.rs | 4 ++-- crates/ptth_server/src/{file_server/mod.rs => file_server.rs} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename crates/ptth_server/src/{file_server/mod.rs => file_server.rs} (100%) diff --git a/crates/ptth_relay/src/lib.rs b/crates/ptth_relay/src/lib.rs index 0c1a49a..f0e7849 100644 --- a/crates/ptth_relay/src/lib.rs +++ b/crates/ptth_relay/src/lib.rs @@ -97,8 +97,8 @@ fn error_reply (status: StatusCode, b: &str) .body (format! ("{}\n", b).into ()) } -// Clients will come here to start requests, and always park for at least -// a short amount of time. +/// Clients will come here to start requests, and always park for at least +/// a short amount of time. async fn handle_http_request ( req: http::request::Parts, diff --git a/crates/ptth_relay/src/server_endpoint.rs b/crates/ptth_relay/src/server_endpoint.rs index 995bb70..a8cc899 100644 --- a/crates/ptth_relay/src/server_endpoint.rs +++ b/crates/ptth_relay/src/server_endpoint.rs @@ -135,8 +135,8 @@ pub async fn handle_listen ( } } -// Servers will come here to stream responses to clients -// Step 5 +/// Servers will come here to stream responses to clients. +/// (Step 5 in the docs) pub async fn handle_response ( req: Request , diff --git a/crates/ptth_server/src/file_server/mod.rs b/crates/ptth_server/src/file_server.rs similarity index 100% rename from crates/ptth_server/src/file_server/mod.rs rename to crates/ptth_server/src/file_server.rs