fix(core): panic if there is no key for lastest key id

This commit is contained in:
2021-03-07 16:28:29 +01:00
parent e3af0ef0e8
commit a9d393282a

View File

@@ -62,7 +62,10 @@ impl Keys {
.read() .read()
.val .val
.into_iter() .into_iter()
.flat_map(move |id| keys.take(&id)) .map(move |id| {
keys.take(&id)
.unwrap_or_else(|| panic!("Could not find key for latest key id {}", id))
})
.min() .min()
} }