client: Mark futures returned by send_matrix_request as Send
This commit is contained in:
parent
5ccee2d1b0
commit
9e3ac10c62
@ -68,7 +68,7 @@ pub trait HttpClientExt: HttpClient {
|
||||
access_token: SendAccessToken<'_>,
|
||||
for_versions: &[MatrixVersion],
|
||||
request: R,
|
||||
) -> Pin<Box<dyn Future<Output = ResponseResult<Self, R>> + 'a>> {
|
||||
) -> Pin<Box<dyn Future<Output = ResponseResult<Self, R>> + 'a + Send>> {
|
||||
self.send_customized_matrix_request(
|
||||
homeserver_url,
|
||||
access_token,
|
||||
@ -88,7 +88,7 @@ pub trait HttpClientExt: HttpClient {
|
||||
for_versions: &[MatrixVersion],
|
||||
request: R,
|
||||
customize: F,
|
||||
) -> Pin<Box<dyn Future<Output = ResponseResult<Self, R>> + 'a>>
|
||||
) -> Pin<Box<dyn Future<Output = ResponseResult<Self, R>> + 'a + Send>>
|
||||
where
|
||||
R: OutgoingRequest + 'a,
|
||||
F: FnOnce(&mut http::Request<Self::RequestBody>) -> Result<(), ResponseError<Self, R>> + 'a,
|
||||
|
Loading…
x
Reference in New Issue
Block a user