-
Notifications
You must be signed in to change notification settings - Fork 931
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
Ftr: Context support #330
Ftr: Context support #330
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #330 +/- ##
===========================================
+ Coverage 66.06% 66.25% +0.18%
===========================================
Files 122 122
Lines 7562 7562
===========================================
+ Hits 4996 5010 +14
+ Misses 2074 2060 -14
Partials 492 492
Continue to review full report at Codecov.
|
I've tested it end to end. |
maybe u should use context.Background() instead of context.Todo() |
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.
would you like to add at least one test case to verify your idea?
Actually, I don't need to add UT because I just add a new parameter and make sure that there is not any compiling 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.
Hard working & good job!
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.
LGTM
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.
All imports fixed
What this PR does:
Adding context.Context to three methods: Filter.Invoke, Filter.OnResponse and Invoker.Invoke.
When we want to support some feature, like tracing and A/B test, we need to transfer the context between client and server. So we should refactor our interfaces to support the context argument.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: