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

InstanceInfo的groupKey参数重复设置 #181

Closed
zhuanghaozhe opened this issue Apr 15, 2022 · 0 comments
Closed

InstanceInfo的groupKey参数重复设置 #181

zhuanghaozhe opened this issue Apr 15, 2022 · 0 comments
Assignees
Milestone

Comments

@zhuanghaozhe
Copy link
Contributor

hippo4j\hippo4j-spring-boot\hippo4j-spring-boot-starter\src\main\java\cn\hippo4j\starter\config\DiscoveryConfiguration.java
中第54行和58行中对InstanceInfo的groupKey重复设置

instanceInfo.setInstanceId(instanceId)
                .setIpApplicationName(getIpApplicationName(environment, hippo4JInetUtils))
                .setHostName(InetAddress.getLocalHost().getHostAddress())
                .setGroupKey(itemId + GROUP_KEY_DELIMITER + namespace)
                .setAppName(applicationName)
                .setPort(port)
                .setClientBasePath(contextPath)
                .setGroupKey(ContentUtil.getGroupKey(itemId, namespace));
@magestacks magestacks added this to the 1.2.1 milestone Apr 15, 2022
zhuanghaozhe added a commit to zhuanghaozhe/hippo4j that referenced this issue Apr 15, 2022
magestacks added a commit that referenced this issue Apr 15, 2022
groupKey参数重复设置的优化 (#181)
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

No branches or pull requests

2 participants