Fix futures not Send
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7688d67870
commit
a8de5d1e60
10 changed files with 33 additions and 29 deletions
|
@ -219,7 +219,7 @@ impl Service {
|
|||
#[tracing::instrument(skip(self, request), name = "request")]
|
||||
pub async fn send_federation_request<T>(&self, dest: &ServerName, request: T) -> Result<T::IncomingResponse>
|
||||
where
|
||||
T: OutgoingRequest + Debug,
|
||||
T: OutgoingRequest + Debug + Send,
|
||||
{
|
||||
let client = &services().globals.client.federation;
|
||||
send::send(client, dest, request).await
|
||||
|
@ -233,7 +233,7 @@ impl Service {
|
|||
&self, registration: Registration, request: T,
|
||||
) -> Result<Option<T::IncomingResponse>>
|
||||
where
|
||||
T: OutgoingRequest + Debug,
|
||||
T: OutgoingRequest + Debug + Send,
|
||||
{
|
||||
appservice::send_request(registration, request).await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue