fix: avoid panic

This commit is contained in:
Timo Kösters 2021-09-01 22:49:16 +02:00
parent 7cd7f1923f
commit 2770ce2cf6
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 9 additions and 13 deletions

View file

@ -1439,13 +1439,7 @@ async fn upgrade_outlier_to_timeline_pdu(
let fork_states = &fork_states
.into_iter()
.map(|map| {
map.into_iter()
.map(|(k, id)| {
(k, (*id).clone())
})
.collect()
})
.map(|map| map.into_iter().map(|(k, id)| (k, (*id).clone())).collect())
.collect::<Vec<_>>();
state_at_incoming_event = match state_res::StateResolution::resolve(