matrix-sdk: Update for the latest backoff changes

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