Skip to content

Commit

Permalink
fix: errored address is none
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 21, 2024
1 parent 8e278e3 commit 5af8822
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/rs-dapi-client/src/dapi_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ impl DapiRequestExecutor for DapiClient {
retries: retries_counter.load(std::sync::atomic::Ordering::Acquire),
address: None,
})?;

let pool = self.pool.clone();

let mut transport_client = R::Client::with_uri_and_settings(
Expand All @@ -192,7 +193,7 @@ impl DapiRequestExecutor for DapiClient {
.map_err(|error| ExecutionError {
inner: DapiClientError::Transport(error),
retries: retries_counter.load(std::sync::atomic::Ordering::Acquire),
address: None,
address: Some(address.clone()),
})?;

let response = transport_request
Expand All @@ -214,7 +215,7 @@ impl DapiRequestExecutor for DapiClient {
inner: DapiClientError::AddressList(error),
retries: retries_counter
.load(std::sync::atomic::Ordering::Acquire),
address: None,
address: Some(address.clone()),
}
})?;
}
Expand All @@ -234,7 +235,7 @@ impl DapiRequestExecutor for DapiClient {
inner: DapiClientError::AddressList(error),
retries: retries_counter
.load(std::sync::atomic::Ordering::Acquire),
address: None,
address: Some(address.clone()),
}
})?;
}
Expand Down

0 comments on commit 5af8822

Please sign in to comment.