Skip to content

Commit

Permalink
fix: old backon breaks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Oct 8, 2024
1 parent b400b0e commit 20f84ce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions packages/rs-dapi-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ dump = ["mocks"]
offline-testing = []

[dependencies]
backon = "0.5"
dapi-grpc = { path = "../dapi-grpc", features = ["core", "platform", "client"], default-features = false }
backon = { version = "1.2", default-features = false, features = [
"tokio-sleep",
] }
dapi-grpc = { path = "../dapi-grpc", features = [
"core",
"platform",
"client",
], default-features = false }
futures = "0.3.28"
http-serde = { version = "2.1", optional = true }
rand = { version = "0.8.5", features = ["small_rng"] }
Expand Down
2 changes: 1 addition & 1 deletion packages/rs-dapi-client/src/dapi_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl DapiRequestExecutor for DapiClient {
// Start the routine with retry policy applied:
// We allow let_and_return because `result` is used later if dump feature is enabled
let result = routine
.retry(&retry_settings)
.retry(retry_settings)
.notify(|error, duration| {
tracing::warn!(
?error,
Expand Down

0 comments on commit 20f84ce

Please sign in to comment.