client/base_client: do tiny refator for the function getMembers#3777
Conversation
Signed-off-by: shirly <AndreMouche@126.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/merge |
|
@disksing: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 3195d63 |
| } | ||
|
|
||
| func (c *baseClient) getMembers(ctx context.Context, url string) (*pdpb.GetMembersResponse, error) { | ||
| func (c *baseClient) getMembers(basicCtx context.Context, url string, timeout time.Duration) (*pdpb.GetMembersResponse, error) { |
|
/hold |
Signed-off-by: shirly <AndreMouche@126.com>
|
/hold cancel |
|
/merge |
|
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 5581cc0 |
Codecov Report
@@ Coverage Diff @@
## master #3777 +/- ##
==========================================
- Coverage 75.01% 74.94% -0.07%
==========================================
Files 245 245
Lines 24531 24529 -2
==========================================
- Hits 18401 18384 -17
- Misses 4501 4514 +13
- Partials 1629 1631 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…#3777) * client/base_client: do tiny refator for funtion getMembers Signed-off-by: shirly <AndreMouche@126.com> * client/base_client: address comments Signed-off-by: shirly <AndreMouche@126.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: shirly AndreMouche@126.com
What problem does this PR solve?
This PR do some tiny refactor for the function
getMembersin BaseClientWhat is changed and how it works?
with this PR, we can use
pd/clintbygo get github.com/tikv/pd/clientCheck List
Release note