Skip to content

Commit

Permalink
fix(dapi-client): fix after build
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Dec 3, 2024
1 parent 96caaf0 commit d15438e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/rs-dapi-client/src/dapi_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ impl DapiRequestExecutor for DapiClient {
let retries_counter_arc = Arc::new(AtomicUsize::new(0));
let retries_counter_arc_ref = &retries_counter_arc;

// We need reference so that the closure is FnMut
let applied_settings = &applied_settings;

// Setup DAPI request execution routine future. It's a closure that will be called
// more once to build new future on each retry.
let routine = move || {
Expand Down Expand Up @@ -208,7 +211,7 @@ impl DapiRequestExecutor for DapiClient {

let mut transport_client = R::Client::with_uri_and_settings(
address.uri().clone(),
&applied_settings,
applied_settings,
&pool,
)
.map_err(|error| ExecutionError {
Expand All @@ -218,7 +221,7 @@ impl DapiRequestExecutor for DapiClient {
})?;

let response = transport_request
.execute_transport(&mut transport_client, &applied_settings)
.execute_transport(&mut transport_client, applied_settings)
.await
.map_err(DapiClientError::Transport);

Expand Down

0 comments on commit d15438e

Please sign in to comment.