Handle the case where the migration table has illegal entries for some reason
This commit is contained in:
parent
7f07951668
commit
ab864fae45
|
@ -156,7 +156,7 @@ impl MigrationTable {
|
|||
) -> HashMap<[u8; 16], [u8; ENC_MIGRATION_BYTES]> {
|
||||
self.table
|
||||
.iter()
|
||||
.map(|(from_id, to_id)| {
|
||||
.filter_map(|(from_id, to_id)| {
|
||||
encrypt_cred_ids(
|
||||
id,
|
||||
*from_id,
|
||||
|
@ -166,7 +166,6 @@ impl MigrationTable {
|
|||
migration_priv,
|
||||
migrationkey_priv,
|
||||
)
|
||||
.unwrap()
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue