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

router: refactor creation of backendFetcher #141

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

disksing
Copy link
Collaborator

@disksing disksing commented Dec 1, 2022

Signed-off-by: disksing i@disksing.com

What problem does this PR solve?

Move the logic of creating different types of backendFetchers out of router. So that we can easily create a NewScoreBasedRouter or NewBackendObserver with custom backend fetcher, without getting plagued by the etcd client and addrs parameters.

Check List

  • Unit test

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
@xhebox xhebox self-requested a review December 2, 2022 02:53
@xhebox xhebox merged commit a853843 into pingcap:main Dec 2, 2022
@disksing disksing deleted the disksing/fetcher branch December 2, 2022 03:18
xhebox pushed a commit to xhebox/TiProxy that referenced this pull request Mar 7, 2023
xhebox pushed a commit to xhebox/TiProxy that referenced this pull request Mar 13, 2023
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.

2 participants