diff --git a/matrix_sdk/Cargo.toml b/matrix_sdk/Cargo.toml index d9e8d358..bca1f66b 100644 --- a/matrix_sdk/Cargo.toml +++ b/matrix_sdk/Cargo.toml @@ -53,6 +53,7 @@ default_features = false [dependencies.backoff] git = "https://github.com/ihrwein/backoff" features = ["tokio"] +rev = "fa3fb91431729ce871d29c62b93425b8aec740f4" [dependencies.tracing-futures] version = "0.2.4" diff --git a/matrix_sdk/src/http_client.rs b/matrix_sdk/src/http_client.rs index d995e1eb..1a66203e 100644 --- a/matrix_sdk/src/http_client.rs +++ b/matrix_sdk/src/http_client.rs @@ -15,7 +15,7 @@ use std::{convert::TryFrom, fmt::Debug, sync::Arc}; #[cfg(not(test))] -use backoff::{tokio::retry, Error as RetryError, ExponentialBackoff}; +use backoff::{future::retry, Error as RetryError, ExponentialBackoff}; #[cfg(not(test))] use http::StatusCode; use http::{HeaderValue, Method as HttpMethod, Response as HttpResponse};