Skip to content

Commit f7e06cf

Browse files
committed
fix(client): remove obsolete cache invalidation helper
1 parent f25fa5b commit f7e06cf

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

crates/rmcp/src/service/client/cache.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,6 @@ impl<R: ServiceRole> Peer<R> {
298298
.entries
299299
.retain(|key, _| !key.logical_key.starts_with(prefix));
300300
}
301-
302-
pub(crate) async fn invalidate_cached_response(&self, logical_key: &str) {
303-
let mut cache = self.response_cache.write().await;
304-
cache.generation = cache.generation.wrapping_add(1);
305-
cache
306-
.entries
307-
.retain(|key, _| key.logical_key != logical_key);
308-
}
309301
}
310302

311303
impl Peer<RoleClient> {

0 commit comments

Comments
 (0)