run nightly cargo fmt again
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
17e0384eeb
commit
de53ad83b2
11 changed files with 45 additions and 28 deletions
|
@ -58,10 +58,11 @@ pub(super) async fn fetch_state(
|
|||
| hash_map::Entry::Vacant(v) => {
|
||||
v.insert(pdu.event_id.clone());
|
||||
},
|
||||
| hash_map::Entry::Occupied(_) =>
|
||||
| hash_map::Entry::Occupied(_) => {
|
||||
return Err!(Database(
|
||||
"State event's type and state_key combination exists multiple times.",
|
||||
)),
|
||||
));
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,10 +56,11 @@ pub(super) async fn handle_outlier_pdu<'a>(
|
|||
|
||||
obj
|
||||
},
|
||||
| Err(e) =>
|
||||
| Err(e) => {
|
||||
return Err!(Request(InvalidParam(debug_error!(
|
||||
"Signature verification failed for {event_id}: {e}"
|
||||
)))),
|
||||
))));
|
||||
},
|
||||
};
|
||||
|
||||
// Now that we have checked the signature and hashes we can add the eventID and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue