simplify multi_get_or_create/related stream implementations

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-29 04:23:12 +00:00 committed by strawberry
parent 9eb99f8070
commit 7c8eeaf4ea
2 changed files with 6 additions and 13 deletions

View file

@ -187,12 +187,7 @@ impl Service {
state: I,
) -> impl Stream<Item = CompressedStateEvent> + Send + 'a
where
I: Iterator<Item = (&'a ShortStateKey, &'a EventId)>
+ Clone
+ Debug
+ ExactSizeIterator
+ Send
+ 'a,
I: Iterator<Item = (&'a ShortStateKey, &'a EventId)> + Clone + Debug + Send + 'a,
{
let event_ids = state.clone().map(at!(1));