Skip to content

Commit

Permalink
修复nacos服务发现clusters逻辑兼容问题 (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
qnnn authored Feb 22, 2024
1 parent c4ae7cf commit 68e99fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apiserver/nacosserver/core/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@ func (n *NacosDataStorage) ListInstances(filterCtx *FilterContext, filter Instan
CacheMillis: 1000,
Name: svc.Name,
GroupName: svc.Group,
Clusters: strings.Join(clusters, ","),
Checksum: svcInfo.reversion,
LastRefTime: commontime.CurrentMillisecond(),
ReachProtectionThreshold: false,
}
if len(clusters) == 0 {
resultInfo.Clusters = strings.Join(clusters, ",")
}

healthCount := int32(0)
for i := range svcInfo.instances {
Expand Down

0 comments on commit 68e99fe

Please sign in to comment.