-
Notifications
You must be signed in to change notification settings - Fork 224
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
Finish() no longer used binding-message in Send() #689
Conversation
Signed-off-by: XinYang <xinydev@gmail.com>
I think this PR is wrong, finish is invoked by the |
yes, when the user invokes Request() function in but when the user invokes Send() function in |
Maybe that's what needs to be fixed? I mean, on the cloudevents.Client side? |
We can indeed fix this on the But the problem still exists, users who use the protocol manually, they invoke the protocol's Send() function, and then, they can not invoke the Finish() because the Send() function does not return the Message The msg in L143 no longer accessible outside the protocol's send function, and we need to change the protocol's interface if we want to finish this msg out of this function. sdk-go/v2/protocol/http/protocol.go Lines 136 to 156 in 43b8eca
|
@slinkydeveloper Would you please take another look? sdk-go/v2/protocol/http/protocol.go Lines 143 to 156 in 43b8eca
|
@n3wscott any ideas about this one? |
@n3wscott ping |
Looking at a few of the other protocols, they all set up a deferred call to |
Ah, ignore my last comment, I misread the PR and just realised you explained you'd finished the response, not the original message (which is already finished) I can't really comment on this either, I've never used the http protocol before so I don't know if this is going to cause any issues with other integrations. |
Finish() no longer used binding-message in Send(). and I found that some trace mechanisms must rely on Finish() to complete.
Signed-off-by: XinYang xinydev@gmail.com