mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
refactor(indexeddb): remove extraneous log message
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
committed by
Benjamin Bouvier
parent
90cf669f94
commit
588d604653
@@ -379,13 +379,10 @@ impl MediaStoreInner for IndexeddbMediaStore {
|
||||
CursorDirection::Prev,
|
||||
ignore_policy,
|
||||
0usize,
|
||||
|total, key| {
|
||||
web_sys::console::log_1(&format!("total={total}, key={key:?}").into());
|
||||
match total.checked_add(key.content_size()) {
|
||||
None => None,
|
||||
Some(total) if total > max_cache_size as usize => None,
|
||||
Some(total) => Some(total),
|
||||
}
|
||||
|total, key| match total.checked_add(key.content_size()) {
|
||||
None => None,
|
||||
Some(total) if total > max_cache_size as usize => None,
|
||||
Some(total) => Some(total),
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user