simplify multi_get_or_create/related stream implementations
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
9eb99f8070
commit
7c8eeaf4ea
2 changed files with 6 additions and 13 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue