diff --git a/matrix_sdk/src/http_client.rs b/matrix_sdk/src/http_client.rs index 1a66203e..60a89e97 100644 --- a/matrix_sdk/src/http_client.rs +++ b/matrix_sdk/src/http_client.rs @@ -51,6 +51,7 @@ pub trait HttpSend: AsyncTraitDeps { /// ``` /// use std::convert::TryFrom; /// use matrix_sdk::{HttpSend, async_trait, HttpError}; + /// # use std::time::Duration; /// /// #[derive(Debug)] /// struct Client(reqwest::Client); @@ -67,7 +68,11 @@ pub trait HttpSend: AsyncTraitDeps { /// /// #[async_trait] /// impl HttpSend for Client { - /// async fn send_request(&self, request: http::Request>) -> Result>, HttpError> { + /// async fn send_request( + /// &self, + /// request: http::Request>, + /// timeout: Option, + /// ) -> Result>, HttpError> { /// Ok(self /// .response_to_http_response( /// self.0