chore: Compatible with Nacos Server 3.x ServiceInfo's field allIps#264
Merged
CherishCai merged 1 commit intomainfrom Aug 29, 2025
Merged
chore: Compatible with Nacos Server 3.x ServiceInfo's field allIps#264CherishCai merged 1 commit intomainfrom
allIps#264CherishCai merged 1 commit intomainfrom
Conversation
兼容 Nacos Server 3.x 的 ServiceInfo 字段
|
| 文件路径 | 变更说明 |
|---|---|
| CHANGELOG.md | 新增了版本 0.5.2 的变更日志,记录了对 Nacos Server 3.x 兼容性的修复。 |
| Cargo.toml | 将项目版本号更新为 0.5.2,以标识此次修复的发布。 |
| src/naming/dto/service_info.rs | 在 `ServiceInfo` 结构体中增加了对 Nacos Server 3.x 的 `allIps` 字段支持,并保留对旧版本 `allIPs` 的兼容;同时添加了 `is_all_ips()` 方法用于统一处理逻辑,并更新了默认值设置。 |
时序图
sequenceDiagram
participant S as ServiceInfo
S->>S: 添加 all_ips 和 all_ips_3x 字段
S->>S: 实现 is_all_ips() 方法兼容两个字段
S->>S: 更新 validate() 使用 is_all_ips()
S->>S: 设置默认值兼容初始化
💡 小贴士
与 lingma-agents 交流的方式
📜 直接回复评论
直接回复本条评论,lingma-agents 将自动处理您的请求。例如:
-
在当前代码中添加详细的注释说明。
-
请详细介绍一下你说的 LRU 改造方案,并使用伪代码加以说明。
📜 在代码行处标记
在文件的特定位置创建评论并 @lingma-agents。例如:
-
@lingma-agents 分析这个方法的性能瓶颈并提供优化建议。
-
@lingma-agents 对这个方法生成优化代码。
📜 在讨论中提问
在任何讨论中 @lingma-agents 来获取帮助。例如:
-
@lingma-agents 请总结上述讨论并提出解决方案。
-
@lingma-agents 请根据讨论内容生成优化代码。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.