-
Notifications
You must be signed in to change notification settings - Fork 17
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
[sdk#1026] Use postpone.ContextWithValues() #300
[sdk#1026] Use postpone.ContextWithValues() #300
Conversation
d3fcbb0
to
cf6c8c3
Compare
func (c *injectClient) Request(ctx context.Context, request *networkservice.NetworkServiceRequest, | ||
opts ...grpc.CallOption) (*networkservice.Connection, error) { | ||
logger := log.FromContext(ctx).WithField("injectClient", "Request") | ||
func (c *injectClient) Request(ctx context.Context, request *networkservice.NetworkServiceRequest, opts ...grpc.CallOption) (*networkservice.Connection, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also make this change for inject server ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inject server first make move and after makes Request, so it doesn't need postpone
.
Or can you please point what changes do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was talking about this one, but I guess using closeCtx here for ifMoveBack doesn't have any impact here. please just ignore this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the comment, you are totally right - we should use postpone
not only for the Close
but also for closing own resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
cf6c8c3
to
b66e5d7
Compare
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
b66e5d7
to
b721118
Compare
…k-kernel@main PR link: networkservicemesh/sdk-kernel#300 Commit: 26a9371 Author: Denis Tingaikin Date: 2021-08-26 02:24:38 +0300 Message: - Merge pull request #300 from Bolodya1997/sdk#1026/close-context Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k-kernel@main PR link: networkservicemesh/sdk-kernel#300 Commit: 26a9371 Author: Denis Tingaikin Date: 2021-08-26 02:24:38 +0300 Message: - Merge pull request #300 from Bolodya1997/sdk#1026/close-context Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
Use
postpone.ContextWithValues()
forClose
/Unregister
in failedRequest
/Register
cases.Depends on networkservicemesh/sdk#1035.Issue link
networkservicemesh/sdk#1026
How Has This Been Tested?
Types of changes