We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Client::optimize_stores
1 parent 7a81959 commit 9eb04edCopy full SHA for 9eb04ed
crates/matrix-sdk/src/client/mod.rs
@@ -3086,7 +3086,9 @@ impl Client {
3086
self.state_store().optimize().await?;
3087
3088
trace!("Optimizing event cache store...");
3089
- self.event_cache_store().lock().await?.as_clean().unwrap().optimize().await?;
+ if let Some(clean_lock) = self.event_cache_store().lock().await?.as_clean() {
3090
+ clean_lock.optimize().await?;
3091
+ }
3092
3093
trace!("Optimizing media store...");
3094
self.media_store().lock().await?.optimize().await?;
0 commit comments