matrix-sdk: Update for the latest backoff changes

This commit is contained in:
Damir Jelić 2021-02-01 17:58:03 +01:00
parent 2e2d9b33a4
commit 19e9884963
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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};