Relax mut requirements for resolver.clear_cache() and add cache flushing example (#1747)

This commit is contained in:
Stefan Schindler
2022-08-01 15:12:38 +00:00
committed by GitHub
parent 3b73bbaa10
commit 11b84140ff
4 changed files with 105 additions and 6 deletions

View File

@@ -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();
}
}