Relax mut requirements for resolver.clear_cache() and add cache flushing example (#1747)
This commit is contained in:
@@ -190,7 +190,7 @@ impl<R: RuntimeProvider> AsyncResolver<GenericConnection, GenericConnectionProvi
|
||||
}
|
||||
|
||||
/// Flushes/Removes all entries from the cache
|
||||
pub async fn clear_cache(&mut self) {
|
||||
pub fn clear_cache(&self) {
|
||||
self.client_cache.clear_cache();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user