fix: fix caching routine about eviction

This commit is contained in:
Jun Kurihara 2023-08-16 13:16:10 +09:00
commit 460562183e
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 13 additions and 12 deletions

View file

@ -53,7 +53,6 @@ where
async fn request(&self, req: Request<B>) -> Result<Response<Body>, Self::Error> {
let mut synth_req = None;
if self.cache.is_some() {
debug!("Search cache first");
if let Some(cached_response) = self.cache.as_ref().unwrap().get(&req).await {
// if found, return it as response.
debug!("Cache hit - Return from cache");