Skip to content

Commit

Permalink
fix: into_inner doesn't need CanRetry bound
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 21, 2024
1 parent 8af6776 commit 8e278e3
Show file tree
Hide file tree
Showing 75 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion packages/rs-dapi-client/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct ExecutionError<E> {
pub address: Option<Address>,
}

impl<E: CanRetry> ExecutionError<E> {
impl<E> ExecutionError<E> {
/// Unwrap the error cause
pub fn into_inner(self) -> E {
self.inner
Expand Down
4 changes: 2 additions & 2 deletions packages/rs-sdk/tests/fetch/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ async fn get_current_epoch(sdk: &Sdk, cfg: &Config) -> EpochIndex {
let response = sdk
.execute(identity_request, RequestSettings::default())
.await // TODO: We need better way to handle execution response and errors
.map(|execution_response| execution_response.unwrap())
.map_err(|execution_error| execution_error.unwrap())
.map(|execution_response| execution_response.into_inner())
.map_err(|execution_error| execution_error.into_inner())
.expect("get identity");

response.metadata().expect("metadata").epoch as EpochIndex
Expand Down
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

0 comments on commit 8e278e3

Please sign in to comment.