Skip to content

Commit

Permalink
refactor: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 24, 2024
1 parent b24c6ca commit dd785cc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/rs-dapi-client/src/dapi_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ impl DapiRequestExecutor for DapiClient {
&applied_settings,
&pool,
)
.map_err(|e| {
DapiClientError::Transport(TransportError::from(e), address.clone())
})?;
.map_err(|e| DapiClientError::Transport(e, address.clone()))?;

let response = transport_request
.execute_transport(&mut transport_client, &applied_settings)
Expand Down
2 changes: 0 additions & 2 deletions packages/rs-dapi-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ pub mod mock;
mod request_settings;
pub mod transport;

use crate::transport::TransportError;
pub use address_list::Address;
pub use address_list::AddressList;
pub use connection_pool::ConnectionPool;
pub use dapi_client::DapiRequestExecutor;
pub use dapi_client::{DapiClient, DapiClientError};
use dapi_grpc::mock::Mockable;
#[cfg(feature = "dump")]
pub use dump::DumpData;
use futures::{future::BoxFuture, FutureExt};
Expand Down
2 changes: 1 addition & 1 deletion packages/rs-dapi-client/src/transport/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ macro_rules! impl_transport_request_grpc {

client
.$($method)+(grpc_request)
.map_err(TransportError::from)
.map_err(TransportError::Grpc)
.map_ok(|response| response.into_inner())
.boxed()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rs-sdk/src/platform/types/evonode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl TransportRequest for EvoNode {
async move {
let response = client
.get_status(grpc_request)
.map_err(TransportError::from)
.map_err(TransportError::Grpc)
.map_ok(|response| response.into_inner())
.await;

Expand Down

0 comments on commit dd785cc

Please sign in to comment.