apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.27k stars 3.59k forks source link

[Doc] controlled-failover Optimize example code #23512

Open zhuhai1221 opened 4 weeks ago

zhuhai1221 commented 4 weeks ago

Search before asking

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!
visxu commented 4 weeks ago

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