chore(deps): remove deprecated dependencies (#3960)
* chore(deps): remove deprecated dependencies * refactor: simplify string formatting in make_key function
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user