little-cui commented on a change in pull request #280: SCB-339 The wrong
statistics in micro-service
URL:
https://github.com/apache/incubator-servicecomb-service-center/pull/280#discussion_r168053123
##########
File path: server/service/util/microservice_util.go
##########
@@ -245,7 +245,7 @@ func GetOneDomainProjectServiceCount(ctx context.Context,
domainProject string)
}
func GetOneDomainProjectInstanceCount(ctx context.Context, domainProject
string) (int64, error) {
- key := apt.GetInstanceRootKey(domainProject) + "/"
+ key := apt.GetInstanceRootKeyEndWithSeparator(domainProject)
Review comment:
It is not a perfect solution, because user still need to know here must be
end with char '/'
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services