Skip to content

Commit 588d604

Browse files
mgoldenbergbnjbvr
authored andcommitted
refactor(indexeddb): remove extraneous log message
Signed-off-by: Michael Goldenberg <[email protected]>
1 parent 90cf669 commit 588d604

File tree

1 file changed

+4
-7
lines changed
  • crates/matrix-sdk-indexeddb/src/media_store

1 file changed

+4
-7
lines changed

crates/matrix-sdk-indexeddb/src/media_store/mod.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,10 @@ impl MediaStoreInner for IndexeddbMediaStore {
379379
CursorDirection::Prev,
380380
ignore_policy,
381381
0usize,
382-
|total, key| {
383-
web_sys::console::log_1(&format!("total={total}, key={key:?}").into());
384-
match total.checked_add(key.content_size()) {
385-
None => None,
386-
Some(total) if total > max_cache_size as usize => None,
387-
Some(total) => Some(total),
388-
}
382+
|total, key| match total.checked_add(key.content_size()) {
383+
None => None,
384+
Some(total) if total > max_cache_size as usize => None,
385+
Some(total) => Some(total),
389386
},
390387
)
391388
.await?;

0 commit comments

Comments
 (0)