matrix-sdk: Update for the latest backoff changes
parent
2e2d9b33a4
commit
19e9884963
|
@ -53,6 +53,7 @@ default_features = false
|
||||||
[dependencies.backoff]
|
[dependencies.backoff]
|
||||||
git = "https://github.com/ihrwein/backoff"
|
git = "https://github.com/ihrwein/backoff"
|
||||||
features = ["tokio"]
|
features = ["tokio"]
|
||||||
|
rev = "fa3fb91431729ce871d29c62b93425b8aec740f4"
|
||||||
|
|
||||||
[dependencies.tracing-futures]
|
[dependencies.tracing-futures]
|
||||||
version = "0.2.4"
|
version = "0.2.4"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
use std::{convert::TryFrom, fmt::Debug, sync::Arc};
|
use std::{convert::TryFrom, fmt::Debug, sync::Arc};
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
use backoff::{tokio::retry, Error as RetryError, ExponentialBackoff};
|
use backoff::{future::retry, Error as RetryError, ExponentialBackoff};
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
use http::StatusCode;
|
use http::StatusCode;
|
||||||
use http::{HeaderValue, Method as HttpMethod, Response as HttpResponse};
|
use http::{HeaderValue, Method as HttpMethod, Response as HttpResponse};
|
||||||
|
|
Loading…
Reference in New Issue