From 4307a199bcad6c65bbddfb0df8b51b6bab8306b8 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sun, 3 Jul 2022 01:46:06 +0000 Subject: [PATCH] :loud_sound: why is there some delay here? --- crates/ptth_relay/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ptth_relay/src/lib.rs b/crates/ptth_relay/src/lib.rs index dfe55aa..2f29ca8 100644 --- a/crates/ptth_relay/src/lib.rs +++ b/crates/ptth_relay/src/lib.rs @@ -121,6 +121,9 @@ async fn handle_http_request ( { use RequestError::*; + let req_id = rusty_ulid::generate_ulid_string (); + debug! ("Created request {}", req_id); + let req_method = req.method.clone (); if ! state.server_exists (server_name).await { @@ -134,7 +137,7 @@ async fn handle_http_request ( let req_id = rusty_ulid::generate_ulid_string (); - debug! ("Created request {}", req_id); + debug! ("Forwarding {}", req_id); { let response_rendezvous = state.response_rendezvous.read ().await;