refactor: cache manager wrapper to hide mutex lock
This commit is contained in:
parent
a7aac1a0d4
commit
7cfcd60243
2 changed files with 87 additions and 41 deletions
|
|
@ -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"));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue