Improve return type of sync
This commit is contained in:
parent
bbeb437635
commit
d9a88cb63f
@ -109,7 +109,7 @@ use std::{
|
|||||||
|
|
||||||
use futures::{
|
use futures::{
|
||||||
future::Future,
|
future::Future,
|
||||||
stream::{self, TryStream, TryStreamExt as _},
|
stream::{self, Stream, TryStream, TryStreamExt as _},
|
||||||
};
|
};
|
||||||
use http::Response as HttpResponse;
|
use http::Response as HttpResponse;
|
||||||
use hyper::{
|
use hyper::{
|
||||||
@ -320,7 +320,9 @@ where
|
|||||||
filter: Option<ruma_client_api::r0::sync::sync_events::Filter>,
|
filter: Option<ruma_client_api::r0::sync::sync_events::Filter>,
|
||||||
since: Option<String>,
|
since: Option<String>,
|
||||||
set_presence: bool,
|
set_presence: bool,
|
||||||
) -> impl TryStream<Ok = ruma_client_api::r0::sync::sync_events::Response, Error = Error> {
|
) -> impl Stream<Item = Result<ruma_client_api::r0::sync::sync_events::Response, Error>>
|
||||||
|
+ TryStream<Ok = ruma_client_api::r0::sync::sync_events::Response, Error = Error>
|
||||||
|
{
|
||||||
use ruma_client_api::r0::sync::sync_events;
|
use ruma_client_api::r0::sync::sync_events;
|
||||||
|
|
||||||
// TODO: Is this really the way TryStreams are supposed to work?
|
// TODO: Is this really the way TryStreams are supposed to work?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user