We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Client::optimize_stores
1 parent 9eee20b commit ed72d34Copy full SHA for ed72d34
1 file changed
crates/matrix-sdk/src/client/mod.rs
@@ -3230,7 +3230,9 @@ impl Client {
3230
self.state_store().optimize().await?;
3231
3232
trace!("Optimizing event cache store...");
3233
- self.event_cache_store().lock().await?.as_clean().unwrap().optimize().await?;
+ if let Some(clean_lock) = self.event_cache_store().lock().await?.as_clean() {
3234
+ clean_lock.optimize().await?;
3235
+ }
3236
3237
trace!("Optimizing media store...");
3238
self.media_store().lock().await?.optimize().await?;
0 commit comments