Skip to content

assert grpc call errors #6

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

Merged
merged 1 commit into from
Nov 29, 2024
Merged

assert grpc call errors #6

merged 1 commit into from
Nov 29, 2024

Conversation

eguzki
Copy link

@eguzki eguzki commented Nov 28, 2024

Expect from the GRPC call to return error as well.

@eguzki eguzki requested a review from alexsnaps November 28, 2024 17:14
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
@eguzki eguzki force-pushed the assert-grpc-call-errors branch from faa1487 to f022ba0 Compare November 28, 2024 17:52
request,
timeout_milliseconds,
)
.unwrap_or(Ok(0));
Copy link
Member

Choose a reason for hiding this comment

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

You seem to change this for a Err now, to get the previous behavior... that was already confusing, but that's now a new pattern, I don't think this makes sense...

Copy link
Member

Choose a reason for hiding this comment

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

So why the Result here? if the Err path gets dropped on the floor?

Copy link
Member

Choose a reason for hiding this comment

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

It get rewrapped in an Option::Some always... Now I get it

Copy link
Member

Choose a reason for hiding this comment

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

... other than when it isn't expected...

@eguzki
Copy link
Author

eguzki commented Nov 29, 2024

I was thinking we should bring these changes to proxy-wasm#17

wdyt @alexsnaps ?

@eguzki eguzki merged commit bbc8079 into kuadrant Nov 29, 2024
1 check passed
@eguzki eguzki deleted the assert-grpc-call-errors branch November 29, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants