From 19e98849639273b66cc292e0c1375f255cbb541d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 1 Feb 2021 17:58:03 +0100 Subject: [PATCH] matrix-sdk: Update for the latest backoff changes --- matrix_sdk/Cargo.toml | 1 + matrix_sdk/src/http_client.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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};