-
Notifications
You must be signed in to change notification settings - Fork 725
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
client: move WithCallerComponent
from RPCClient
to Client
#8943
Conversation
Signed-off-by: okJiang <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8943 +/- ##
==========================================
- Coverage 76.31% 76.28% -0.03%
==========================================
Files 462 462
Lines 70447 70447
==========================================
- Hits 53763 53744 -19
- Misses 13340 13357 +17
- Partials 3344 3346 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
client/client.go
Outdated
// The upperLayer parameter specifies the depth of the caller stack, | ||
// where 0 means the current function. Adjust the upperLayer value based | ||
// on your needs. | ||
WithCallerComponent(callerComponent caller.Component) RPCClient |
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.
WithCallerComponent(callerComponent caller.Component) RPCClient | |
WithCallerComponent(callerComponent caller.Component) Client |
Signed-off-by: okJiang <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JmPotato, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: JmPotato <[email protected]>
What problem does this PR solve?
Issue Number: ref #8593
Callers always use
Client
to call grpc interface. To make it more convenient for the caller to make calls, we moveWithCallerComponent
fromRPCClient
toClient
.What is changed and how does it work?
Check List
Tests
Release note