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

[1284] support nacos service metadata #1285

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

provenceee
Copy link
Collaborator

No description provided.

@provenceee provenceee self-assigned this Jun 24, 2024
Comment on lines +73 to +77
NamingMaintainService namingMaintainService = namingMaintainService();
try {
namingService.registerInstance(serviceId, group, instance);
namingMaintainService.updateService(serviceId, group, 0,
NacosMicroserviceHandler.createMicroserviceMetadata());
Copy link
Collaborator

Choose a reason for hiding this comment

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

是否可以注册的时候就设置属性?而不是先注册再更新?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

注册实例的时候无法设置服务级的元数据,如果注册实例之前设置服务级的元数据,需要判断是否存在服务,存在就更新,不存在要创建,所以这里选择注册时候后去更新

@chengyouling chengyouling merged commit 8ffe2e1 into huaweicloud:master Jun 29, 2024
1 check passed
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.

None yet

3 participants