Skip to content

Fixed wrong result propagation#550

Merged
slinkydeveloper merged 1 commit intocloudevents:masterfrom
slinkydeveloper:issue_result_propagation
Jun 30, 2020
Merged

Fixed wrong result propagation#550
slinkydeveloper merged 1 commit intocloudevents:masterfrom
slinkydeveloper:issue_result_propagation

Conversation

@slinkydeveloper
Copy link
Copy Markdown
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
Comment thread v2/client/client.go
// 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
Copy Markdown
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