Skip to content
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

Use a new way to create client for v2 #806

Merged
merged 3 commits into from
May 18, 2023

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented May 17, 2023

No description provided.

@@ -260,6 +260,34 @@ func NewPDClient(pdAddrs []string) (pd.Client, error) {
return pdCli, nil
}

// NewPDClientWithAPIContext returns an unwrapped pd client with API context.
func NewPDClientWithAPIContext(pdAddrs []string, apiContext pd.APIContext) (pd.Client, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about implementing NewPDClient with NewPDClientWithAPIContext by passing the APIV1 context?

Copy link
Member

@iosmanthus iosmanthus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

Signed-off-by: Ryan Leung <[email protected]>
@iosmanthus iosmanthus merged commit d5baf4c into tikv:cse-region-client May 18, 2023
@rleungx rleungx deleted the update-client branch May 18, 2023 10:20
iosmanthus pushed a commit to iosmanthus/client-go that referenced this pull request Dec 21, 2023
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants