optimize further into state-res with SmallString

triage and de-lints for state-res.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-02-08 01:58:13 +00:00 committed by strawberry
commit f2ca670c3b
15 changed files with 192 additions and 145 deletions

View file

@ -133,7 +133,7 @@ pub(super) async fn handle_outlier_pdu<'a>(
));
}
let state_fetch = |ty: &'static StateEventType, sk: &str| {
let state_fetch = |ty: &StateEventType, sk: &str| {
let key = (ty.to_owned(), sk.into());
ready(auth_events.get(&key))
};