fix(core): panic if there is no key for lastest key id
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user