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]> {
|
) -> 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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue