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

[type:feat] springcloud plugin dynamic register #5634

Open
wants to merge 50 commits into
base: master
Choose a base branch
from

Conversation

WindSearcher
Copy link

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

@yunlongn yunlongn changed the title dynamic register [type:feat] springcloud plugin dynamic register Aug 28, 2024
public ShenyuSpringCloudServiceChooser(final DiscoveryClient discoveryClient) {
this.discoveryClient = discoveryClient;
public ShenyuSpringCloudServiceChooser(final RegisterConfig config) {
this.repository = ShenyuInstanceRegisterRepositoryFactory.newAndInitInstance(config);
Copy link
Member

Choose a reason for hiding this comment

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

It should not be initialized here. You need to consider getting the latest instance in the method after modification.

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