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]> {
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()
}