refactor: cache manager wrapper to hide mutex lock

This commit is contained in:
Jun Kurihara 2023-08-22 21:15:34 +09:00
commit 7cfcd60243
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
2 changed files with 87 additions and 41 deletions

View file

@ -87,7 +87,6 @@ where
return res;
};
let (parts, body) = res.unwrap().into_parts();
// TODO: Inefficient?
let Ok(mut bytes) = hyper::body::aggregate(body).await else {
return Err(RpxyError::Cache("Failed to write byte buffer"));
};