Skip to content

Comments

optimize updateServiceUrl method#14441

Closed
lordcheng10 wants to merge 1 commit intoapache:masterfrom
lordcheng10:optimize_updateServiceUrl
Closed

optimize updateServiceUrl method#14441
lordcheng10 wants to merge 1 commit intoapache:masterfrom
lordcheng10:optimize_updateServiceUrl

Conversation

@lordcheng10
Copy link
Contributor

Motivation

optimize updateServiceUrl method

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 24, 2022
@lordcheng10
Copy link
Contributor Author

@hangc0276 PTAL,thanks!

@lordcheng10
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Override
public synchronized void updateServiceUrl(String serviceUrl) throws PulsarClientException {
if (serviceUrl != null && serviceUrl.equals(conf.getServiceUrl())) {
log.info("Ignore service URL to {},because it is the same as the current service URL!", serviceUrl);
Copy link
Contributor

Choose a reason for hiding this comment

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

Ignore service URL -> 'Ignore update service URL' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
Aha, I made a mistake, here is the judgment of whether the url is equal. I will close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants