-
Notifications
You must be signed in to change notification settings - Fork 19
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() #322
[sdk#1026] Use postpone.ContextWithValues() #322
Conversation
@edwarnicke |
Rather that injecting it... just write a very simple utility function to create it given a context. Think about the understandability of the resulting code. I can either call some function that is hopefully as close as possible to existing Context idioms, or I can fish something out of the existing context. If I want to go back and figure out what is going on... which is easier to understand? |
694b5bf
to
09870be
Compare
@edwarnicke |
09870be
to
933437b
Compare
LGTM @edwarnicke Do you still have any unresolved comments on this PR? |
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
Signed-off-by: Vladimir Popov <vladimir.popov@xored.com>
933437b
to
4c8daa2
Compare
Merging this. @edwarnicke Feel free to ping us if we missed unresolved comments. Changes based on networkservicemesh/sdk#1035 |
…k-vpp@main PR link: networkservicemesh/sdk-vpp#322 Commit: cfdbe19 Author: Vladimir Popov Date: 2021-08-27 06:18:32 +0700 Message: - [sdk#1026] Use postpone.ContextWithValues() (#322) * Use postpone.ContextWithValues() for Close on failure cases Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Use postpone for closing internal resources Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k-vpp@main PR link: networkservicemesh/sdk-vpp#322 Commit: cfdbe19 Author: Vladimir Popov Date: 2021-08-27 06:18:32 +0700 Message: - [sdk#1026] Use postpone.ContextWithValues() (#322) * Use postpone.ContextWithValues() for Close on failure cases Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Use postpone for closing internal resources Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k-vpp@main PR link: networkservicemesh/sdk-vpp#322 Commit: cfdbe19 Author: Vladimir Popov Date: 2021-08-27 06:18:32 +0700 Message: - [sdk#1026] Use postpone.ContextWithValues() (#322) * Use postpone.ContextWithValues() for Close on failure cases Signed-off-by: Vladimir Popov <vladimir.popov@xored.com> * Use postpone for closing internal resources 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