diff --git a/crates/ptth_relay/src/lib.rs b/crates/ptth_relay/src/lib.rs index c5a1407..1e46516 100644 --- a/crates/ptth_relay/src/lib.rs +++ b/crates/ptth_relay/src/lib.rs @@ -32,8 +32,7 @@ use dashmap::DashMap; use futures_util::StreamExt; use handlebars::Handlebars; use hyper::{ - Body, - Method, + Body, Request, Response, Server, diff --git a/crates/ptth_server/src/file_server/mod.rs b/crates/ptth_server/src/file_server/mod.rs index bfe998d..be21882 100644 --- a/crates/ptth_server/src/file_server/mod.rs +++ b/crates/ptth_server/src/file_server/mod.rs @@ -142,14 +142,6 @@ async fn serve_file ( let decision = serve_file_decision (&input); - let client_cache_hit = match &input.actual_etag { - None => false, - Some (actual) => match &if_none_match { - None => false, - Some (if_none_match) => &actual == if_none_match, - } - }; - let (range, range_requested) = (range.range, range.range_requested); info! ("Serving range {}-{}", range.start, range.end);