Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actor: add a new WaitSuccess API #3491

Merged
merged 1 commit into from
Jun 21, 2024
Merged

actor: add a new WaitSuccess API #3491

merged 1 commit into from
Jun 21, 2024

Conversation

roman-khimov
Copy link
Member

Most of the time people are interested in successful executions. Unfortunately, unwrap package can't help here because of a different result structure (some interface abstract can help, but it's still mostly stack-oriented and sessions can be a problem), so this additional interface is needed.

@roman-khimov roman-khimov added I3 Minimal impact rpc RPC server and client U4 Nothing urgent enhancement Improving existing functionality S3 Minimally significant labels Jun 20, 2024
@roman-khimov roman-khimov added this to the v0.106.3 milestone Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.12%. Comparing base (4ff2063) to head (a327a82).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3491      +/-   ##
==========================================
- Coverage   86.19%   86.12%   -0.07%     
==========================================
  Files         331      331              
  Lines       38494    38510      +16     
==========================================
- Hits        33179    33166      -13     
- Misses       3785     3815      +30     
+ Partials     1530     1529       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

pkg/rpcclient/actor/actor.go Outdated Show resolved Hide resolved
pkg/rpcclient/notary/actor.go Outdated Show resolved Hide resolved
pkg/rpcclient/actor/actor.go Show resolved Hide resolved
Most of the time people are interested in successful executions. Unfortunately,
unwrap package can't help here because of a different result structure (some
interface abstract can help, but it's still mostly stack-oriented and sessions
can be a problem), so this additional interface is needed.

Signed-off-by: Roman Khimov <[email protected]>
@AnnaShaleva AnnaShaleva merged commit 3889224 into master Jun 21, 2024
20 of 21 checks passed
@AnnaShaleva AnnaShaleva deleted the wait-success branch June 21, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I3 Minimal impact rpc RPC server and client S3 Minimally significant U4 Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants