chore(deps): remove deprecated dependencies (#3960)

* chore(deps):  remove deprecated dependencies

* refactor: simplify string formatting in make_key function
This commit is contained in:
Tunglies
2025-07-02 03:07:50 +08:00
committed by GitHub
parent 5befa90f81
commit 37d268bb16
4 changed files with 48 additions and 249 deletions

View File

@@ -22,7 +22,7 @@ impl ProxyRequestCache {
}
pub fn make_key(prefix: &str, id: &str) -> String {
format!("{}:{}", prefix, id)
format!("{prefix}:{id}")
}
pub async fn get_or_fetch<F, Fut>(&self, key: String, ttl: Duration, fetch_fn: F) -> Arc<Value>