Handle the case where the migration table has illegal entries for some reason

This commit is contained in:
Ian Goldberg 2021-05-01 11:56:25 -04:00
parent 7f07951668
commit ab864fae45
1 changed files with 1 additions and 2 deletions

View File

@ -156,7 +156,7 @@ impl MigrationTable {
) -> HashMap<[u8; 16], [u8; ENC_MIGRATION_BYTES]> { ) -> HashMap<[u8; 16], [u8; ENC_MIGRATION_BYTES]> {
self.table self.table
.iter() .iter()
.map(|(from_id, to_id)| { .filter_map(|(from_id, to_id)| {
encrypt_cred_ids( encrypt_cred_ids(
id, id,
*from_id, *from_id,
@ -166,7 +166,6 @@ impl MigrationTable {
migration_priv, migration_priv,
migrationkey_priv, migrationkey_priv,
) )
.unwrap()
}) })
.collect() .collect()
} }