Remove unwrap

This commit is contained in:
Mubelotix
2025-08-12 19:00:43 +02:00
parent 0b89783a3f
commit 1f7689a3fb

View File

@ -533,7 +533,8 @@ impl IndexScheduler {
let (timestamp, data) = i?; let (timestamp, data) = i?;
if let Some(to_remove) = to_remove.remove(&timestamp) { if let Some(to_remove) = to_remove.remove(&timestamp) {
let mut current = data.decode().unwrap(); // TODO let mut current =
data.decode().map_err(|e| Error::Anyhow(anyhow::anyhow!(e)))?;
current -= &to_remove; current -= &to_remove;
if current.is_empty() { if current.is_empty() {