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

Fixed wrong result propagation #550

Merged

Conversation

slinkydeveloper
Copy link
Member

Using Request was not propagating correctly the result. This fixes it

Signed-off-by: Francesco Guardiani francescoguard@gmail.com

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper slinkydeveloper added bug Something isn't working component/client labels Jun 29, 2020
@slinkydeveloper slinkydeveloper added this to the SDK 2.2 milestone Jun 29, 2020
@slinkydeveloper slinkydeveloper requested a review from n3wscott June 29, 2020 11:15
@@ -159,7 +159,7 @@ func (c *ceClient) Request(ctx context.Context, e event.Event) (*event.Event, pr
// If the protocol returns no error, it is an ACK on the request, but we had
// issues turning the response into an event, so make an ACK Result and pass
// down the ToEvent error as well.
err = fmt.Errorf("%w; failed to convert response into event: %s", protocol.ResultACK, rserr)
err = protocol.NewReceipt(true, "failed to convert response into event: %s\n%w", rserr.Error(), err)
Copy link
Member

Choose a reason for hiding this comment

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

ah, I see, we are dropping the err type and we can't understand if it is a special error. got it.

LGTM

@slinkydeveloper slinkydeveloper merged commit f589bae into cloudevents:master Jun 30, 2020
@slinkydeveloper slinkydeveloper deleted the issue_result_propagation branch June 30, 2020 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants