mirror of
https://github.com/alibaba/higress.git
synced 2026-04-22 04:27:26 +08:00
fix: Read service count returned from the list instead of the Count field (#476)
This commit is contained in:
@@ -238,7 +238,7 @@ func (w *watcher) fetchAllServices() error {
|
||||
for _, serviceName := range ss.Doms {
|
||||
fetchedServices[groupName+DefaultJoiner+serviceName] = true
|
||||
}
|
||||
if ss.Count < DefaultFetchPageSize {
|
||||
if len(ss.Doms) < DefaultFetchPageSize {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user