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

[Doc] controlled-failover Optimize example code #23512

Open
1 of 2 tasks
zhuhai1221 opened this issue Oct 24, 2024 · 1 comment
Open
1 of 2 tasks

[Doc] controlled-failover Optimize example code #23512

zhuhai1221 opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels
doc-required Your PR changes impact docs and you will update later.

Comments

@zhuhai1221
Copy link

zhuhai1221 commented Oct 24, 2024

Search before asking

  • I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

https://pulsar.apache.org/docs/3.0.x/client-libraries-cluster-level-failover/#controlled-failover
There is unnecessary code present
image
image

because org.apache.pulsar.client.impl.ClientBuilderImpl#build already initialize
image

What is your suggestion?

delete provider.initialize(pulsarClient);
image

Any reference?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@zhuhai1221 zhuhai1221 added the doc-required Your PR changes impact docs and you will update later. label Oct 24, 2024
@visxu
Copy link
Contributor

visxu commented Oct 25, 2024

Yes, I checked the doc and source code, I agree the suggestion.
Please assign the issue to me.
@crossoverJie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required Your PR changes impact docs and you will update later.
Projects
None yet
Development

No branches or pull requests

2 participants